Skip to content

Latest commit

 

History

History
110 lines (83 loc) · 4.15 KB

File metadata and controls

110 lines (83 loc) · 4.15 KB

terraform-aws-cloudflare-security-group

Terraform to only allow ingress from Cloudflare IPs

Usage

module "cloudflare-ingress" {
   source = "github.com/opszero/terraform-aws-cloudflare-security-group"
   vpc_id = "vpc-12345"
}

Outputs

module.cloudflare-ingress.security_group_id

License

Copyright 2022 opsZero, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Deployment

terraform init
terraform plan
terraform apply -auto-approve

Teardown

terraform destroy -auto-approve

Providers

Name Version
aws n/a
http n/a

Inputs

Name Description Type Default Required
vpc_id The vpc_id to add the security group into string "" no

Resources

Name Type
aws_security_group.cloudflare resource
aws_security_group_rule.cloudflare resource
http_http.ipv4 data source
http_http.ipv6 data source

Outputs

Name Description
security_group_id n/a

🚀 Built by opsZero!

Since 2016 opsZero has been providing Kubernetes expertise to companies of all sizes on any Cloud. With a focus on AI and Compliance we can say we seen it all whether SOC2, HIPAA, PCI-DSS, ITAR, FedRAMP, CMMC we have you and your customers covered.

We provide support to organizations in the following ways:

We do this with a high-touch support model where you:

  • Get access to us on Slack, Microsoft Teams or Email
  • Get 24/7 coverage of your infrastructure
  • Get an accelerated migration to Kubernetes

Please schedule a call if you need support.