-
Notifications
You must be signed in to change notification settings - Fork 50
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
Remove dependency with mattclay.aws
collection
#233
Conversation
2de34c1
to
ba4706f
Compare
mattclay.aws
collectionmattclay.aws
collection
mattclay.aws
collectionmattclay.aws
collection
a8b38ac
to
44cfe64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure that we need to prioritize removing the dependency on mattclay.aws. If there are modules in the supported amazon.aws collection that provide the exact same functionality as modules in mattclay.aws, we can look at replacing those. We shouldn't be vendoring copies of modules from mattclay.aws just to remove that dependency, though.
This is exactly what has been done. The mattclay.aws modules have been replaced by those from supported collection with the same feature. Nothing has been copied, |
This is my problem. Why copy anything at all? There is no pressing need to remove the dependency on mattclay.aws. |
I will turn |
d3dff6a
to
3ee2227
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and rebased this. Sorry for the delay. There are a few small things that need addressing, but otherwise it looks good.
aws/terminator.yml
Outdated
- name: package terminator requirements | ||
tags: lambda | ||
lambda_package: | ||
src: "{{ packaging_dir }}/terminator-requirements" | ||
archive: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a full replacement for the lambda_package
module. The generated archive changes based on the timestamps of the included files, which results in a new Lambda version being created even when the file contents are unchanged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Idempotency check for the lambda layer archive is assumed by downloading the one stored in AWS and compare it with the local one in a deterministic way (setting a constant time value)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add a custom module to do the comparison instead of using the existing module to create the archive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
existing I did not found a way in the module to create archive in a deterministic way, so we will always have a diff between the sha from aws and the local one, please suggest if there is a way to solve that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wasn't specific enough. I was asking why replace mattclay.aws.lambda_package
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for wanting to remove the dependency on the mattclay.aws
collection to begin with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the intend was to migrate to a collection supported by the cloud team.
@jillr could you please clarify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the intend was to migrate to a collection supported by the cloud team. @jillr could you please clarify
This was never the intent. There was a need to update community.aws
, in particular migrating to the newer iam_role
module. There's never been a problem with the mattclay.aws
collection. If there are modules from the supported amazon.aws
collection that can fully replace modules from the mattclay.aws
collection, we can consider those, but that is not apparently the case here with the lambda_package
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then I will keep lambda_package from mattclay.aws
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI - I've updated the mattclay.aws
collection to version 3.0.0. It should now play nice with amazon.aws
5.x.
3ee2227
to
8b9ac44
Compare
I would like to either close this PR or get it to a state that it can be merged. With |
aws/terminator.yml
andaws/deploy-test-policy.yml
playbooks usemattclay.aws
collection, we want to remove this and use directly supported collectionscommunity.aws
andamazon.aws