Created
February 7, 2018 16:27
-
-
Save nathanpeck/0f48179ac8e347cd0c64f4e8d45920d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Security group to add the Redis cluster to the VPC, | |
# and to allow the Fargate containers to talk to Redis on port 6379 | |
RedisSecurityGroup: | |
Type: AWS::EC2::SecurityGroup | |
Properties: | |
GroupDescription: "Redis Security Group" | |
VpcId: | |
Fn::ImportValue: | |
!Join [':', [!Ref 'EnvironmentName', 'VPCId']] | |
RedisIngress: | |
Type: AWS::EC2::SecurityGroupIngress | |
Properties: | |
Description: Ingress from Fargate containers | |
GroupId: !Ref 'RedisSecurityGroup' | |
IpProtocol: tcp | |
FromPort: 6379 | |
ToPort: 6379 | |
SourceSecurityGroupId: | |
Fn::ImportValue: | |
!Join [':', [!Ref 'EnvironmentName', 'FargateContainerSecurityGroup']] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment