Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
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.
We shouldn't hardcode this here, it will change. We could optionally pass it from outside the module, if we want to override the current head git SHA? We build and deploy this zip file as an S3 artifact on every commit via Travis and the terraform-external-module-artifact module checks the HEAD commit of the module and looks for an artifact there. This all came about when conversing about how to build/deploy Lambda artifacts. We had three different proposals:
@osterman wanted to go with the last option and made https://github.com/cloudposse/terraform-external-module-artifact to do so. Do you know why you were getting the 404 when trying to run this module? e.g. what was the curl command?
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.
Part of the problem of the last approach is that it was very difficult / nay impossible to do local dev as the thing hadn't been build and pushed yet.
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.
@joshmyers
elasticsearch_cleanup_versionwith default value point to the SHAThere 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 do not know what curl command was
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.
💯 you shouldn't need to lookup a commit sha when wanting to deploy this lambda function
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 works without needing to hardcode. We had this working. Something else might have changed, but the strategy works.
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.
It is local dev because we allow all paths to be defined as inputs to the module. So the guy who knows what they are doing can... But it's also possible for someone without nodejs installed locall to deploy this module because it defaults to remote artifacts. =)