Open ahmadafrasiyab opened 3 years ago
Date | Activity | Time Spent |
---|---|---|
03/05/2021 | Setting up issue | 15 mins |
03/08/2021 | Researching templates | 2 hours |
03/12/2021 | Setting up boto3 | 30 mins |
03/14/2021 | Testing deployment | 1 hour |
03/17/2021 | Creating PR | 30 mins |
Pre-requisites
$ python -m pip install boto3
to install boto3Instructions
python lambdaCloudFormationDeploy.py AWS_ACCESS_KEY AWS_SECRET THE_NAME_OF_YOUR_STACK
Response Data: {'StackId': 'arn:aws:cloudformation:us-west-2:061431082068:stack/afrasiyabtest1/acd11d50-87b8-11eb-9078-0296b3ac8a31', 'ResponseMetadata': {'RequestId': '3490b863-ad1ponseMetadata': {'RequestId': '3490b863-ad11-4610-9e14-869f72de07a5',
'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amzn-requestid': '3490b863-': 'text/xml', 'content-length': '384',
'daad11-4610-9e14-869f72de07a5', 'content-type': 'text/xml', 'content-length': '384',
'date': 'Thu, 18 Mar 2021 07:08:00 GMT'}, 'RetryAttempts': 0}}
Operation Successful
4. You can verify the stack by going over to AWS console, searching "Cloud Formation" and seeing the name of your lambda function created successfully.
Shoutout to @jleeboyd for helping with the boto3 script.
@toddysm I tried using both pairs of AWS access keys and secrets. My personal ones and the GitHub actions ones however for both of them I get authorization issues. For my own I see this:
For GitHub ones I see this:
Awaiting your feedback on this.
Is your feature request related to a problem? Please describe. The task is to create a script using cloud formation templates that deploys lambda functions on AWS and use Boto3 for implementation of the script.
Describe the solution you'd like The proposed solution is to use the boto3 SDK to deploy a lambda function to AWS using cloud formation.
Additional context This is still a work in progress as there are AWS authorization issues preventing resource creation.