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

Issues with bucket id/arn outputs #1

Open
martinklepsch opened this issue Nov 11, 2021 · 1 comment
Open

Issues with bucket id/arn outputs #1

martinklepsch opened this issue Nov 11, 2021 · 1 comment

Comments

@martinklepsch
Copy link

Hello! I really like the idea of managing this through Terraform but was running into some issues using the module. Could it be that it needs to be .id / .arn instead of _id?

Thanks for your help.

╷
│ Error: Unsupported attribute
│
│   on .terraform/modules/arc_backup/main.tf line 89, in data "aws_iam_policy_document" "backup_user_policy":
│   89:       "${module.backup_bucket.this_s3_bucket_id}/*"
│     ├────────────────
│     │ module.backup_bucket is a object, known only after apply
│
│ This object does not have an attribute named "this_s3_bucket_id".
╵
╷
│ Error: Unsupported attribute
│
│   on .terraform/modules/arc_backup/outputs.tf line 12, in output "backup_bucket_name":
│   12:   value       = module.backup_bucket.this_s3_bucket_id
│     ├────────────────
│     │ module.backup_bucket is a object, known only after apply
│
│ This object does not have an attribute named "this_s3_bucket_id".
╵
╷
│ Error: Unsupported attribute
│
│   on .terraform/modules/arc_backup/outputs.tf line 16, in output "backup_bucket_arn":
│   16:   value       = module.backup_bucket.this_s3_bucket_arn
│     ├────────────────
│     │ module.backup_bucket is a object, known only after apply
│
│ This object does not have an attribute named "this_s3_bucket_arn".
@bergbrains
Copy link
Owner

Hey, @martinklepsch. I kinda threw this up there and moved on from Arq backup. Just seeing this for the first time.

W/out digging into this, I think that the module that I used to create the buckets (terraform-aws-modules/s3-bucket/aws) made some change about 2 years ago that renamed its outputs.

TF pulled the latest version of that mod, when you did your init, because there was no version pinning. You probably found this already, but it's a matter of updating those references to match those of the current module version's outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants