Coder Social home page Coder Social logo

terraform-vpc-example's Introduction

ROSA Reference VPC

Usage

Planning

  • Simple usage

      $ terraform plan -out rosa.tfplan -var region=us-east-2
    
  • Full usage with command line variable

      $ terraform plan -out rosa.tfplan \
          -var region=us-east-2 \
          -var 'subnet_azs=["use2-az1", "use2-az2", "use2-az3"]' \
          -var cluster_name=rosa-hcp \
          -var vpc_cidr=10.0.0.0/16 \
          -var subnet_cidr_prefix=24 \
          -var private_subnets_only=false \
          -var single_az_only=false
    
  • Full usage with sample tfvars file

      $ teraform plan -out rosa.tfplan -var-file=sample.tfvars
    

Apply

$ terraform apply rosa.tfplan

Reference

Requirements

Name Version
terraform >= 1.4.0
aws ~> 4.0
null ~> 3.2

Providers

Name Version
aws 4.67.0
null 3.2.2

Modules

Name Source Version
vpc terraform-aws-modules/vpc/aws ~> 4.0.0

Resources

Name Type
null_resource.validations resource
aws_availability_zones.available_azs data source

Inputs

Name Description Type Default Required
cluster_name Name of the created ROSA with hosted control planes cluster. string "rosa-hcp" no
extra_tags Extra tags to apply to AWS resources map {} no
private_subnets_only Only create private subnets bool false no
region Region to create AWS infrastructure resources for a
ROSA with hosted control planes cluster. (required)
string n/a yes
single_az_only Only create subnets in a single availability zone bool true no
subnet_azs List of availability zone names or IDs that subnets can get deployed into.
If not provided, defaults to well known AZ IDs for each region.
Does not currently support Local Zones, Outpost, or Wavelength.
list(string) [] no
subnet_cidr_prefix The CIDR prefix value to use when dividing up the VPC CIDR range into subnet ranges.
E.g., 24 to create equal subnets of size "24": 10.0.1.0/24, 10.0.2.0/24, etc.
number 24 no
vpc_cidr IPv4 CIDR netmask for the VPC resource.
This should equal or include the cluster's Machine CIDR netmask.
string "10.0.0.0/16" no

Outputs

Name Description
cluster-private-subnets List of private subnet IDs created.
cluster-public-subnets List of private subnet IDs created.
cluster-subnets-string Comma-separated string of all subnet IDs created for this cluster.

terraform-vpc-example's People

Contributors

2uasimojo avatar arendej avatar ericponvelle avatar mjlshen avatar paulczar avatar sureshgaikwad avatar tylercreller avatar wgordon17 avatar yuhkih avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.