Skip to content

SAM project for update a security group with cloudfront whitelist IPs

License

Notifications You must be signed in to change notification settings

coast-ch/cloudfront_security_group_update_ips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloudfront whitelist lambda

You must create in your infrastructure a security group with specific tags

Parameters:
  Protocol:
    Type: String
    AllowedValues:
      - "http"
      - "https"

CloudfrontSecurityGroupGlobal:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupName: cloudfront_ips_whitelist_g
      GroupDescription: Cloudfront IPs whitelist
      Tags:
        - Key: Name
          Value: "cloudfront_g"
        - Key: AutoUpdate
          Value: "true"
        - Key: Protocol
          Value: !Ref Protocol

  CloudfrontSecurityGroupRegional:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupName: "cloudfront_ips_whitelist_r"
      GroupDescription: "Cloudfront IPs whitelist"
      Tags:
        - Key: Name
          Value: "cloudfront_r"
        - Key: AutoUpdate
          Value: "true"
        - Key: Protocol
          Value: !Ref Protocol`

About

SAM project for update a security group with cloudfront whitelist IPs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages