amazon-cloudformation

Run Crawler using custom resource Lambda

久未见 提交于 2021-01-07 16:31:51
问题 I am trying to create and invoke an AWS Glue crawler using cloud formation. The creation part of the crawler(dynamo DB as target) is in lambda function. how can I achieve all this using cloud formation? i.e creation of lambda function from cod present in s3 , After lambda function is created, it should get triggered to create crawler and then crawler should be invoked to create targted tables. I want all of this is cloud formation. link for reference: Is it possible to trigger a lambda on

Run Crawler using custom resource Lambda

£可爱£侵袭症+ 提交于 2021-01-07 16:27:56
问题 I am trying to create and invoke an AWS Glue crawler using cloud formation. The creation part of the crawler(dynamo DB as target) is in lambda function. how can I achieve all this using cloud formation? i.e creation of lambda function from cod present in s3 , After lambda function is created, it should get triggered to create crawler and then crawler should be invoked to create targted tables. I want all of this is cloud formation. link for reference: Is it possible to trigger a lambda on

Run Crawler using custom resource Lambda

左心房为你撑大大i 提交于 2021-01-07 16:25:23
问题 I am trying to create and invoke an AWS Glue crawler using cloud formation. The creation part of the crawler(dynamo DB as target) is in lambda function. how can I achieve all this using cloud formation? i.e creation of lambda function from cod present in s3 , After lambda function is created, it should get triggered to create crawler and then crawler should be invoked to create targted tables. I want all of this is cloud formation. link for reference: Is it possible to trigger a lambda on

How to reference Arn and name of AWS lambda function created with Serverless Framework

青春壹個敷衍的年華 提交于 2021-01-05 07:22:08
问题 I am using the Serverless Framework to create a lambda function and would like to be able to cross-reference its Arn and name in other parts of serverless.yml. I'm surprised how difficult I'm finding this as !GetAtt and !Ref do not seem to work as I would expect if the lambda was created via vanilla CloudFormation. (AWS::Lambda::Function returns Ref and Fn::GetAtt which would make this easy!) I have found a few posts, that allude to solutions, but nothing that states in plain English how to

How to reference Arn and name of AWS lambda function created with Serverless Framework

别说谁变了你拦得住时间么 提交于 2021-01-05 07:21:04
问题 I am using the Serverless Framework to create a lambda function and would like to be able to cross-reference its Arn and name in other parts of serverless.yml. I'm surprised how difficult I'm finding this as !GetAtt and !Ref do not seem to work as I would expect if the lambda was created via vanilla CloudFormation. (AWS::Lambda::Function returns Ref and Fn::GetAtt which would make this easy!) I have found a few posts, that allude to solutions, but nothing that states in plain English how to

How to modify multiline parameters in CloudFormation?

不问归期 提交于 2020-12-29 18:44:15
问题 I created a CloudFormation stack using the ECS wizard. I want to customize some UserData entries to modify some parameters. However, as you can see in the picture, the parameters that must appear in multiple lines are shown in one line. Checking the current parameter, it is applied to multiple lines. After modifying this in the web UI, the UserData parameter is changed to one line, so the script does not work. Is there a way to update the values normally? 回答1: Unfortunately, the

How to modify multiline parameters in CloudFormation?

谁说胖子不能爱 提交于 2020-12-29 18:41:35
问题 I created a CloudFormation stack using the ECS wizard. I want to customize some UserData entries to modify some parameters. However, as you can see in the picture, the parameters that must appear in multiple lines are shown in one line. Checking the current parameter, it is applied to multiple lines. After modifying this in the web UI, the UserData parameter is changed to one line, so the script does not work. Is there a way to update the values normally? 回答1: Unfortunately, the

Is it possible to execute a CloudFormation file in Terraform?

浪尽此生 提交于 2020-12-29 03:23:43
问题 One team has already written a cloudformation template as a .yml file that provisions a stack of resources. Is it possible to leverage this file by executing it from within Terraform? Or does it have to be rewritten? I'm new to terraform and just getting started. If I were using the AWS CLI I would execute a command like this, aws cloudformation create-stack --stack-name my-new-stack --template-body file://mystack.yml --parameters ParameterKey=AmiId I'd like to include the equivalent of this

AWS Cloudformation - how to DependsOn resource from another nested stack

帅比萌擦擦* 提交于 2020-12-13 03:45:48
问题 I have a CF parent template with nested stacks in it. What I'm trying to do is set DependsOn attribute in one of the nested stacks, to check for the resource from another nested stack. Here is my setup: Parent stack: (Passing the resource reference between nested stacks) RDS: Type: AWS::CloudFormation::Stack Properties: TemplateURL: https://cf-app-stack.s3.eu-west-2.amazonaws.com/infrastructure/rds.yaml Parameters: EnvironmentName: !Ref AWS::StackName DBVPCSecurityGroup: !GetAtt

AWS Cloudformation - how to DependsOn resource from another nested stack

◇◆丶佛笑我妖孽 提交于 2020-12-13 03:45:06
问题 I have a CF parent template with nested stacks in it. What I'm trying to do is set DependsOn attribute in one of the nested stacks, to check for the resource from another nested stack. Here is my setup: Parent stack: (Passing the resource reference between nested stacks) RDS: Type: AWS::CloudFormation::Stack Properties: TemplateURL: https://cf-app-stack.s3.eu-west-2.amazonaws.com/infrastructure/rds.yaml Parameters: EnvironmentName: !Ref AWS::StackName DBVPCSecurityGroup: !GetAtt