-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Fix: Deployment Principal ARNs #164
Conversation
…e bucket policy JSON will be invalid.
…y and there is a check for its length in locals{} that assumes it is empty by default, but it is not empty by default.
… AWS i.e. when s3_access_log_bucket_name is true as a result of acm_certificate_arn being unset.
…loyment_principal_arns.
…/terraform-aws-cloudfront-s3-cdn into fix/deployment-principal-arns
/test all |
…/terraform-aws-cloudfront-s3-cdn into fix/deployment-principal-arns
…ed testing domain.
…/terraform-aws-cloudfront-s3-cdn into fix/deployment-principal-arns
This Pull Request has been updated, so we're dismissing all reviews.
… limitations of var.acm_certificate_arn being unset in variables.tf.
/test all |
Tests are currently stuck in queued due to a GitHub Actions incident |
/test all |
Will need to remove validation due to Terraform version used in tests being too old for functions used in validation block. |
…form version being used in automated Terratest testing.
…/terraform-aws-cloudfront-s3-cdn into fix/deployment-principal-arns
/test all |
/test all |
…that the validation is removed.
/test all |
/test all |
68ab714
to
c286551
Compare
/test all |
@Nuru thank you — yes it does seem better to programatically handle the leading slash and not have the user deal with it. I just fixed a couple of typos in |
/test all |
formatlist("${local.origin_bucket.arn}%s*", each.value), | ||
resources = distinct(flatten([ | ||
[local.origin_bucket.arn], | ||
formatlist("${local.origin_bucket.arn}/%s*", each.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.
This is a better way of ensuring the bucket policy is valid, as we're handling the slash programatically now instead of deferring it to the user.
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.
LGTM!
what
deployment_principal_arns
deployment_principal_arns
— otherwise an error occurs when comparing types.Fix snippet: all prefixes must begin in forward slash or otherwise the bucket policy JSON will be invalid.(misc)
Fix typo in tfvars fixtures in example.why
deployment_principal_arns
was not working andexamples/complete
was not testing for itreferences