amazon-cloudformation

I have a problem in cloud formation. Error when using Fn::Join with a parameter

两盒软妹~` 提交于 2020-03-05 04:11:12
问题 I am trying to create one Security Group and calling other security group from parameters using cloudformation. I used this as a resource however I get the following error message from cloudfromation Template validation error: Template error: every Fn::Join object requires two parameters, (1) a string delimiter and (2) a list of strings to be joined or a function that returns a list of strings (such as Fn::GetAZs) to be joined. AWSTemplateFormatVersion : 2010-09-09 Description: "simple web

I have a problem in cloud formation. Error when using Fn::Join with a parameter

会有一股神秘感。 提交于 2020-03-05 04:10:22
问题 I am trying to create one Security Group and calling other security group from parameters using cloudformation. I used this as a resource however I get the following error message from cloudfromation Template validation error: Template error: every Fn::Join object requires two parameters, (1) a string delimiter and (2) a list of strings to be joined or a function that returns a list of strings (such as Fn::GetAZs) to be joined. AWSTemplateFormatVersion : 2010-09-09 Description: "simple web

Use Pseudo Variables in Cloudwatch Dashboard Template (Cloudformation)

怎甘沉沦 提交于 2020-02-29 06:19:28
问题 I am trying to set up a Cloud Formation Template to create a Cloudwatch-Dashboard. In this context I want to use the Pseudo Variable to ascertain the Region. If I simply use the Pseudo Variable AWS::Region the code doesnt seem to work: AutoscalingDashboard: Type: AWS::CloudWatch::Dashboard Properties: DashboardName: AutoscalingDashboard DashboardBody: ' { "widgets":[ { "type":"metric", "x":0, "y":0, "width":12, "height":6, "properties":{ "metrics":[ [ "AWS/ECS", "MemoryUtilization",

Trying to pass parameters from Master to child template

百般思念 提交于 2020-02-27 20:51:07
问题 I'm trying to pass list parameters from master to child template, however I'm running into two errors.. These are my current parameters on the master template. "Parameters": { "ELBSubnets": { "Default": "subnet-5d8fea67,subnet-3e35cf15", "Type": "CommaDelimitedList" }, "LCKeyPair": { "Default": "key-master", "Type": "String" }, "LCSecurityGroups": { "Default": "sg-10a15c74,sg-880e5fec", "Type": "CommaDelimitedList" } }, They are being referenced in this method on the same template when

Hash in the Logical Id of the resources in CDK/Cloudformation

狂风中的少年 提交于 2020-02-25 03:58:28
问题 Whenever I generate cloudformation template from CDK, I see that in logical ids, it adds some kind of Hash. What does that Hash mean? Eg. Test4FCEEF4A How does this Hash 4FCEEF4A gets generated? 回答1: The logical IDs for resources are set using the allocateLogicalId method which you can find here. It calls the makeUniqueId method which you can find here. In the makeUniqueId method, it creates a hash component of the logical ID and a human -readable component of the logical ID. It uses the

resource type error while trying to use cloudformation

两盒软妹~` 提交于 2020-02-25 03:39:27
问题 I tried to use the exact same example provided in the user guide mentioned below. It works from console but fails to create stack using client. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html I got an error while trying to execute the following: { "Resources": { "AthenaNamedQuery": { "Type": "AWS::Athena::NamedQuery", "Properties": { "Database": "swfnetadata", "Description": "A query that selects all aggregated data", "Name":

resource type error while trying to use cloudformation

夙愿已清 提交于 2020-02-25 03:38:28
问题 I tried to use the exact same example provided in the user guide mentioned below. It works from console but fails to create stack using client. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html I got an error while trying to execute the following: { "Resources": { "AthenaNamedQuery": { "Type": "AWS::Athena::NamedQuery", "Properties": { "Database": "swfnetadata", "Description": "A query that selects all aggregated data", "Name":

How do I specify template parameters when running AWS SAM Local?

♀尐吖头ヾ 提交于 2020-02-21 12:33:20
问题 Using AWS SAM Local I can test my serverless application locally, which is awesome. I can also deploy to AWS, which apparently takes the same flags as aws cloudformation deploy , so I can pass a parameters file with e.g. application secrets (API keys and such). However, I can't find anything in aws local start-api --help or in the docs on Github about how to use a parameter file when testing locally. How do I point to a parameters file to use with my template when running sam local start-api

How to create some random or unique value in a CloudFormation template?

情到浓时终转凉″ 提交于 2020-02-06 11:29:31
问题 Is there a way to create some kind of random or unique value in a CloudFormation template? Why I need this. In our templates we have a number of custom-named resources, for instance AWS::AutoScaling::LaunchConfiguration with specified LaunchConfigurationName or AWS::AutoScaling::AutoScalingGroup with specified AutoScalingGroupName . When updating stacks, we often get the following error: CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename some-stack

How to create some random or unique value in a CloudFormation template?

为君一笑 提交于 2020-02-06 11:24:41
问题 Is there a way to create some kind of random or unique value in a CloudFormation template? Why I need this. In our templates we have a number of custom-named resources, for instance AWS::AutoScaling::LaunchConfiguration with specified LaunchConfigurationName or AWS::AutoScaling::AutoScalingGroup with specified AutoScalingGroupName . When updating stacks, we often get the following error: CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename some-stack