Skip to content

runner-binaries-syncer : "source_hash" is not expected here #1926

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

Closed
AliAllomani opened this issue Apr 10, 2022 · 2 comments
Closed

runner-binaries-syncer : "source_hash" is not expected here #1926

AliAllomani opened this issue Apr 10, 2022 · 2 comments

Comments

@AliAllomani
Copy link

"aws_s3_bucket_object" "trigger" : etag was replaced with source_hash in #1783.

However, terraform provider version is still locked to v3.38 which doesn't have source_hash parameter for aws_s3_bucket_object

https://github.com/philips-labs/terraform-aws-github-runner/blob/e3e63367178eb0c65062268555c04ad1f6fb0f83/modules/runner-binaries-syncer/versions.tf#L4-L8

https://registry.terraform.io/providers/hashicorp/aws/3.38.0/docs/resources/s3_bucket_object

│ Error: Unsupported argument
│ 
│   on .terraform/modules/runners/modules/runner-binaries-syncer/runner-binaries-syncer.tf line 126, in resource "aws_s3_bucket_object" "trigger":
│  126:   source_hash = filemd5("${path.module}/trigger.json")
│ 
│ An argument named "source_hash" is not expected here.
@npalm
Copy link
Member

npalm commented Apr 13, 2022

@AliAllomani thanks for pointing out this issue. We planning to upgrade the module to the AWS provider 4.x soon. In the mean time I will upgrade the minimal provider version.

ref: release 3.50 introduced the option: https://github.com/hashicorp/terraform-provider-aws/releases/tag/v3.50.0

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

2 participants