## # This sample adds an ElastiCache cluster to the environment. # It does not provide credentials for accessing that elasticache cluster or on-instance scripts. # # Customers would generally not edit this file. # Instead, they would have another file sitting in the same directory (or anywhere) with # an option-settings section such as the following (all of these are showing the default value) # # option-settings: # "aws:elasticbeanstalk:customoption" : # CacheNodeType : cache.m1.small # NumCacheNodes : 1 # Engine : memcached # ## Resources: MyElastiCache: Type: AWS::ElastiCache::CacheCluster Properties: CacheNodeType: Fn::GetOptionSetting: OptionName : CacheNodeType DefaultValue: cache.m1.small NumCacheNodes: Fn::GetOptionSetting: OptionName : NumCacheNodes DefaultValue: 1 Engine: Fn::GetOptionSetting: OptionName : Engine DefaultValue: memcached CacheSecurityGroupNames: - Ref: MyCacheSecurityGroup MyCacheSecurityGroup: Type: AWS::ElastiCache::SecurityGroup Properties: Description: "Lock cache down to webserver access only" MyCacheSecurityGroupIngress: Type: AWS::ElastiCache::SecurityGroupIngress Properties: CacheSecurityGroupName: Ref: MyCacheSecurityGroup EC2SecurityGroupName: Ref: AWSEBSecurityGroup