这是indexloc提供的服务,不要输入任何密码
Skip to content

JamesWoolfenden/terraform-http-ip

Repository files navigation

terraform-http-ip

Build Status Latest Release GitHub tag (latest SemVer) Terraform Version Infrastructure Tests pre-commit checkov Infrastructure Tests

This terraform-http-ip is designed to return the public IP of the box running terraform, it's designed for use in a security group.


It's 100% Open Source and licensed under the APACHE2.

Usage

Expecting minimal usage.

module "data" {
   source = "jameswoolfenden/ip/http"
   version= "0.3.2"
}

It has an output of ip so in your code e.g.

master_authorized_networks_config {
  cidr_blocks {
    cidr_block = "${module.data.ip}/32"
    }
}

or as a CIDR

master_authorized_networks_config {
  cidr_blocks {
    cidr_block = module.data.cidr
    }
}

Requirements

No requirements.

Providers

Name Version
http n/a

Modules

No modules.

Resources

Name Type
http_http.ip data source

Inputs

No inputs.

Outputs

Name Description
cidr Outputs your IP address as a CIDR
ip Your IP

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Copyrights

Copyright © 2019-2023 James Woolfenden

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributors

James Woolfenden
James Woolfenden

About

A very simple module to return the host Public IP address

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published