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

Github Actions: Examples Checks validate-terraform job failing on main branch #22980

Closed
anGie44 opened this issue Feb 7, 2022 · 1 comment · Fixed by #22979
Closed

Github Actions: Examples Checks validate-terraform job failing on main branch #22980

anGie44 opened this issue Feb 7, 2022 · 1 comment · Fixed by #22979
Labels
github_actions Pull requests that update Github_actions code service/s3 Issues and PRs that pertain to the s3 service.

Comments

@anGie44
Copy link
Contributor

anGie44 commented Feb 7, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Affected Example

  • s3-cross-account-access

Error output

===> Validating Example: ./examples/s3-cross-account-access <===

╷
│ Error: Value for unconfigurable attribute
│ 
│   with aws_s3_bucket.prod,
│   on main.tf line 19, in resource "aws_s3_bucket" "prod":
│   19:   policy = <<POLICY
│   20: {
│   21:   "Version": "2012-10-17",
│   22:   "Statement": [
│   23:     {
│   24:       "Sid": "AllowTest",
│   25:       "Effect": "Allow",
│   26:       "Principal": {
│   27:         "AWS": "arn:aws:iam::${var.test_account_id}:root"
│   28:       },
│   29:       "Action": "s3:*",
│   30:       "Resource": "arn:aws:s3:::${var.bucket_name}/*"
│   31:     }
│   32:   ]
│   33: }
│   34: POLICY
│ 
│ Can't configure a value for "policy": its value will be decided
│ automatically based on the result of applying this configuration.
╵
Error: Process completed with exit code 1.

References

@anGie44 anGie44 added github_actions Pull requests that update Github_actions code service/s3 Issues and PRs that pertain to the s3 service. labels Feb 7, 2022
@anGie44 anGie44 changed the title Github Actions: validate-terraform job failing on main branch Github Actions: Examples Checks validate-terraform job failing on main branch Feb 7, 2022
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
github_actions Pull requests that update Github_actions code service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
1 participant