Skip to content

lambda-my-aws/cfn-macro-vpc

Repository files navigation

CFN Macro VPC

Documentation Status

CFN Macro VPC

How-to

Parameters:
  VpcCidr:
    Type: String
Transform:
  - cfnmacro-vpc
    Properties:
      CidrBlock: !Ref VpcCidr
      EnableDnsHostnames: True
      Tags:
        - KeyName: Name
          Value: !Ref AWS::Stackname
    VpcSettings:
      AvailabilityZones:
        Fn::GetAZs !Ref 'AWS::Region'
      PublicVpc: True
      UseCloudMap: True
      DhcpOptions: # DHCP Options as according to `DHCP Options Doc`_
        DomainName: !Sub '${AWS::StackName}.local'
    SubnetsLayers:
      - Name: Public
        Properties:
          PublicIngress: True
          PublicEgress: True
          AvailabilityZones:
            Fn::GetAzs !Ref AWS::Region
          OnePerAzOnly: True
      - Name: Application
        Properties:
          PublicIngress: False
          PublicEgress: True
          AvailabilityZones:
            Fn::GetAzs !Ref AWS::Region
          OnePerAzOnly: False
      - Name: Storage
        Properties:
          PublicEgress: False
          PublicIngress: False
          AvailabilityZones:
            Fn::GetAZs !Ref AWS::Region
          OnePerAzOnly: True

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Main module for cfn-macro-vpc submodules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published