GIRIJA
GIRIJA

Reputation: 29

How to load files to s3 from code commit using Cloudformation

I have a Glue job which will take gluescript from S3 bucket. The gluescript will be pushed to code commit and from code commit the gluescript will be automatically copied to S3.

My query is : How to load files to s3 from code commit using Cloudformation?

Upvotes: 1

Views: 794

Answers (2)

Robert Kossendey
Robert Kossendey

Reputation: 7028

With Cloudformation transform you can use local paths to specify the script location. This way you can have your scripts in your Git repo and not in S3. CloudFormation will upload your scripts in the background.

Upvotes: 0

Marcin
Marcin

Reputation: 238995

Other then using AWS::CodeCommit::Repository Code, there is nothing. If this does not suit you, you have to create custom resource in CloudFormation (CFN).

The custom resource would be in the form of a lambda function, which when triggered in CFN stack would use AWS SDK to interact with S3 and CodeCommit to copy files between the two services.

Upvotes: 1

Related Questions