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

go1.x to provided.al2 migration #230

Merged
merged 4 commits into from
Nov 17, 2023

Conversation

msummers-nr
Copy link
Contributor

Issue #229 :

Description of changes: Changes required to migrate from go1.x to provided.al2

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Handler: bootstrap
Runtime: provided.al2
Architectures:
- x86_64
Copy link
Member

Choose a reason for hiding this comment

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

is there a reason this is only x86_64?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It wasn't clear to me what to do here, particularly as it's an example.

@@ -15,6 +15,13 @@ Resources:
Principal:
Service: resources.cloudformation.amazonaws.com
Action: sts:AssumeRole
Condition:
Copy link
Member

Choose a reason for hiding this comment

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

do we need the extra condition?

Copy link
Contributor

Choose a reason for hiding this comment

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

@kddejong
Copy link
Contributor

kddejong commented Nov 13, 2023

Also worth noting provided.al2023 just came out too. https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html

https://aws.amazon.com/blogs/compute/introducing-the-amazon-linux-2023-runtime-for-aws-lambda/

@msummers-nr
Copy link
Contributor Author

@kddejong I followed the Migration guide published in July, it uses provided.al2.

I couldn't figure-out how to build this with options, or how cfn would use that capability- hard coding these values is awfully brittle.

@kddejong
Copy link
Contributor

If we can rebase to master the CI/CD issues should resolve itself.

@mircealam mircealam self-requested a review November 16, 2023 21:04
@msummers-nr
Copy link
Contributor Author

@kddejong rebase done

@mircealam
Copy link
Member

looks like there is an issue with the end of file for one of the files

fix end of files.........................................................Failed

  • hook id: end-of-file-fixer
  • exit code: 1
  • files were modified by this hook

Fixing examples/github-repo/makebuild

@msummers-nr
Copy link
Contributor Author

2 of the generated example files were missing from .gitignore, I've deleted them from git and updated .gitignore- that was causing the EOF problem.

@mircealam
Copy link
Member

2 of the generated example files were missing from .gitignore, I've deleted them from git and updated .gitignore- that was causing the EOF problem.

Still failing CI:

https://github.com/aws-cloudformation/cloudformation-cli-go-plugin/actions/runs/6903650678/job/18792040714?pr=230

@msummers-nr
Copy link
Contributor Author

That's interesting- cfn generate generates a README.md that trips fix end of files

@rajdivya rajdivya merged commit 482f297 into aws-cloudformation:master Nov 17, 2023
4 checks passed
@mircealam
Copy link
Member

@msummers-nr thank you for your contribution.

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.

5 participants