sfn-manage-batch-job-tf: Update AWS Provider to v6 - #3271
Open
kakakakakku wants to merge 4 commits into
Open
Conversation
kakakakakku
commented
Aug 9, 2026
| compute_environment_order { | ||
| order = 1 | ||
| compute_environment = aws_batch_compute_environment.batch_compute_env.arn | ||
| } |
Contributor
Author
There was a problem hiding this comment.
╷
│ Error: Unsupported argument
│
│ on main.tf line 257, in resource "aws_batch_compute_environment" "batch_compute_env":
│ 257: compute_environment_name = "BatchComputeEnvironment-${random_string.random.result}"
│
│ An argument named "compute_environment_name" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 286, in resource "aws_batch_job_queue" "batch_job_queue":
│ 286: compute_environments = [
│
│ An argument named "compute_environments" is not expected here.
╵
kakakakakku
commented
Aug 9, 2026
| }, | ||
| ] | ||
| }) | ||
| managed_policy_arns = ["arn:aws:iam::aws:policy/service-role/AWSBatchServiceRole"] |
Contributor
Author
There was a problem hiding this comment.
│ Warning: Argument is deprecated
│
│ with aws_iam_role.batch_role,
│ on main.tf line 221, in resource "aws_iam_role" "batch_role":
│ 221: managed_policy_arns = ["arn:aws:iam::aws:policy/service-role/AWSBatchServiceRole"]
│
│ managed_policy_arns is deprecated. Use the aws_iam_role_policy_attachment resource instead. If Terraform should exclusively manage all managed policy attachments (the current behavior of this argument), use the
│ aws_iam_role_policy_attachments_exclusive resource as well.
│
│ (and one more similar warning elsewhere)
╵
kakakakakku
commented
Aug 9, 2026
| * [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured | ||
| * [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) | ||
| * [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM) installed | ||
| * [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli) with version 1.x installed (this pattern has been tested with version 1.15) |
Contributor
Author
There was a problem hiding this comment.
note: This pattern use Terraform not AWS SAM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A
Description of changes:
Hi😀 Thanks for the useful patterns!
To keep this pattern maintainable, I updated the AWS Provider to v6.
Check
terraform applycompleted successfully and works good.Thank you😀
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.