Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: updated workflows for pull request and merge to main #1

Merged
merged 10 commits into from
Nov 13, 2024

Conversation

voorepreethi
Copy link
Contributor

This PR consists of workflows for pull request and release.

  1. Pull Request workflow consists of:
    a. Installing sam cli.
    b. Validating all the templates using sam.

  2. Release workflow consists of :
    a. Install sam cli.
    b. Build, package and publishing the template file to s3 bucket.

hrai-nr
hrai-nr previously approved these changes Nov 7, 2024
Copy link
Contributor

@hrai-nr hrai-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, this is already reviewed.

@@ -0,0 +1,35 @@
name: Build and Deploy Lambda
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update description.

- name: Validate SAM Templates
run: |
for template in $(find . -name ".yaml" -o -name ".yml"); do
echo "Validating template: $template"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this getting logged, where can I see it.

run: sam build --template-file firehose-template.yaml --region us-east-2

- name: Package SAM Application
run: sam package --s3-bucket unified-lambda-cft-1 --output-template-file firehose-template.yaml --region us-east-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this bucket? unified-lambda-cft-1?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this upload trigger template?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Since same bucket name cannot be created across different accounts as well , I put it unified-lambda-serverless-1. The original bucket is unified-lambda-serverless.

run: sam package --s3-bucket unified-lambda-cft-1 --output-template-file firehose-template.yaml --region us-east-2

- name: Upload CloudFormation Template to S3
run: aws s3 cp firehose-template.yaml s3://unified-lambda-serverless-1/firehose-template.yaml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not the prod bucket. Are you planning to change it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Once we move to Jim Rupert, would change

@maya-jha
Copy link

validate sam template is failing, please look into this.

@hrai-nr hrai-nr merged commit 10b02d9 into main Nov 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants