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

Refactoring of SSM configuration #3

Merged
merged 2 commits into from
Aug 28, 2020
Merged

Refactoring of SSM configuration #3

merged 2 commits into from
Aug 28, 2020

Conversation

moritzzimmer
Copy link
Owner

Introducing a new configuration object ssm to specify SSM parameter names. The IAM role will be enhanced with read permissions to those parameters.

In addition the variable kms_key_arn will (also) be set in the aws_lambda_function as described in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function#kms_key_arn.

(for spring-media users, this fixes spring-media/terraform-aws-lambda#61 and spring-media/terraform-aws-lambda#59)

Deprecations:

  • the old ssm_parameter_names variable is deprecated and scheduled for deletion in the next major release of this module
  • using kms_key_arn to create an IAM role attachment to allow kms:Decrypt for custom keys is deprecated and will be removed in the next major release of this module

- use objects in favour of maps to have a more precise API and documentation (those are interchangeable from a client perspective)
- use lambda fixture in all tests
- streamlined examples
- added deprecation comments for ssm
- use `kms_key_arn` (also) as described in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function#kms_key_arn
- custom object which can be enhanced for kms_key later
- adapted documentation and added example
- allow `ssm:GetParameter`

for spring-media users, this fixes spring-media/terraform-aws-lambda#61 and spring-media/terraform-aws-lambda#59
@moritzzimmer moritzzimmer added the 💅 enhancement New feature or request label Aug 28, 2020
@moritzzimmer moritzzimmer self-assigned this Aug 28, 2020
@moritzzimmer moritzzimmer merged commit 156ee79 into master Aug 28, 2020
@moritzzimmer moritzzimmer deleted the ssm_fixes branch August 28, 2020 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow ssm:GetParameter with ssm config
1 participant