-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add Fargate support to Batch compute environments #16819
Add Fargate support to Batch compute environments #16819
Conversation
3646f1d
to
6e9b7cf
Compare
Hi, gave this a test run locally and noticed an issue when updating the max vcpus parameter. The update command issued to AWS includes both max and min vcpus, and AWS responds with a A hacky fix I quickly tried out on line 456 of
|
@Skybound1 thanks for your feedback! If I understand well to reproduce what you describe and add some test case. You have an existing Terraform configuration with Batch resources and you want to reconfigure the compute environment to use Fargate, correct? Have you removed |
Yup this was migrating existing Batch to Fargate, and I had removed the Edit: I should also note that I only saw this issue when I was modifying the value of max vCpu as well |
Hi @Skybound1. Thank you, just made an updated with your suggested fix. Also try to create a test case for this issue but was unable to reproduce your error. When switch from EC2 to Margate type in my tests, I find that the compute environment was deleted and created again, not updated. Can you have a look at ef9e6d8? |
b7f552f
to
15284f2
Compare
…atchComputeEnvironment_createEc2'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_createEc2' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_createEc2 -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_createEc2 === PAUSE TestAccAWSBatchComputeEnvironment_createEc2 === RUN TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources === PAUSE TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources === CONT TestAccAWSBatchComputeEnvironment_createEc2 === CONT TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources --- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources (15.93s) --- PASS: TestAccAWSBatchComputeEnvironment_createEc2 (41.39s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 44.466s
…atchComputeEnvironment_createFargate'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_createFargate' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_createFargate -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_createFargate === PAUSE TestAccAWSBatchComputeEnvironment_createFargate === RUN TestAccAWSBatchComputeEnvironment_createFargateSpot === PAUSE TestAccAWSBatchComputeEnvironment_createFargateSpot === CONT TestAccAWSBatchComputeEnvironment_createFargate === CONT TestAccAWSBatchComputeEnvironment_createFargateSpot --- PASS: TestAccAWSBatchComputeEnvironment_createFargate (37.82s) --- PASS: TestAccAWSBatchComputeEnvironment_createFargateSpot (37.89s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 41.373s
…atchComputeEnvironment_createSpot'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_createSpot' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_createSpot -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_createSpot === PAUSE TestAccAWSBatchComputeEnvironment_createSpot === RUN TestAccAWSBatchComputeEnvironment_createSpotWithAllocationStrategy === PAUSE TestAccAWSBatchComputeEnvironment_createSpotWithAllocationStrategy === RUN TestAccAWSBatchComputeEnvironment_createSpotWithoutBidPercentage === PAUSE TestAccAWSBatchComputeEnvironment_createSpotWithoutBidPercentage === CONT TestAccAWSBatchComputeEnvironment_createSpot === CONT TestAccAWSBatchComputeEnvironment_createSpotWithoutBidPercentage === CONT TestAccAWSBatchComputeEnvironment_createSpotWithAllocationStrategy --- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithoutBidPercentage (16.19s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithAllocationStrategy (39.25s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpot (451.34s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 454.712s
…nt_createEc2_DesiredVcpus_ComputeResourcesTags'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_ComputeResourcesTags' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_ComputeResourcesTags -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_ComputeResourcesTags === PAUSE TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_ComputeResourcesTags === CONT TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_ComputeResourcesTags --- PASS: TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_ComputeResourcesTags (72.85s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 75.936s
…nt_updateServiceRole'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_updateServiceRole' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_updateServiceRole -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_updateServiceRole === PAUSE TestAccAWSBatchComputeEnvironment_updateServiceRole === CONT TestAccAWSBatchComputeEnvironment_updateServiceRole --- PASS: TestAccAWSBatchComputeEnvironment_updateServiceRole (64.70s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 67.804s
…nment_createEc2_DesiredVcpus_ComputeResourcesTags' to 'TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags === PAUSE TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags === CONT TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags --- PASS: TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags (126.28s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 129.281s
…atchComputeEnvironment_ComputeResources_MaxVcpus' and 'TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_ComputeResources_' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_ComputeResources_ -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus === PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus === RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus === PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus === CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus === CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus --- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus (83.56s) --- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus (219.32s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 222.771s
…atchComputeEnvironment_launchTemplate'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_launchTemplate' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_launchTemplate -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_launchTemplate === PAUSE TestAccAWSBatchComputeEnvironment_launchTemplate === CONT TestAccAWSBatchComputeEnvironment_launchTemplate --- PASS: TestAccAWSBatchComputeEnvironment_launchTemplate (39.96s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 43.510s
…atchComputeEnvironment_UpdateLaunchTemplate'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate === PAUSE TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate === CONT TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate --- PASS: TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate (61.35s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 66.500s
…atchComputeEnvironment_createUnmanagedWithComputeResources'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources === PAUSE TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources === CONT TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources --- PASS: TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources (36.32s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 39.467s
373c4c4
to
a880e91
Compare
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_disappears\|TestAccAWSBatchJobDefinition_disappears' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_disappears\|TestAccAWSBatchJobDefinition_disappears -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_disappears === PAUSE TestAccAWSBatchComputeEnvironment_disappears === RUN TestAccAWSBatchJobDefinition_disappears === PAUSE TestAccAWSBatchJobDefinition_disappears === CONT TestAccAWSBatchComputeEnvironment_disappears === CONT TestAccAWSBatchJobDefinition_disappears --- PASS: TestAccAWSBatchJobDefinition_disappears (9.66s) --- PASS: TestAccAWSBatchComputeEnvironment_disappears (46.07s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 49.143s
…e updated for Fargate compute resources. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_' ACCTEST_PARALLELISM=4 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_ -timeout 180m === RUN TestAccAWSBatchComputeEnvironment_basic === PAUSE TestAccAWSBatchComputeEnvironment_basic === RUN TestAccAWSBatchComputeEnvironment_disappears === PAUSE TestAccAWSBatchComputeEnvironment_disappears === RUN TestAccAWSBatchComputeEnvironment_NameGenerated === PAUSE TestAccAWSBatchComputeEnvironment_NameGenerated === RUN TestAccAWSBatchComputeEnvironment_NamePrefix === PAUSE TestAccAWSBatchComputeEnvironment_NamePrefix === RUN TestAccAWSBatchComputeEnvironment_createEc2 === PAUSE TestAccAWSBatchComputeEnvironment_createEc2 === RUN TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags === PAUSE TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags === RUN TestAccAWSBatchComputeEnvironment_createSpot === PAUSE TestAccAWSBatchComputeEnvironment_createSpot === RUN TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage === PAUSE TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage === RUN TestAccAWSBatchComputeEnvironment_createFargate === PAUSE TestAccAWSBatchComputeEnvironment_createFargate === RUN TestAccAWSBatchComputeEnvironment_createFargateSpot === PAUSE TestAccAWSBatchComputeEnvironment_createFargateSpot === RUN TestAccAWSBatchComputeEnvironment_updateState === PAUSE TestAccAWSBatchComputeEnvironment_updateState === RUN TestAccAWSBatchComputeEnvironment_updateServiceRole === PAUSE TestAccAWSBatchComputeEnvironment_updateServiceRole === RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus === PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus === RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus === PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus === RUN TestAccAWSBatchComputeEnvironment_launchTemplate === PAUSE TestAccAWSBatchComputeEnvironment_launchTemplate === RUN TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate === PAUSE TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate === RUN TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate === PAUSE TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate === RUN TestAccAWSBatchComputeEnvironment_Tags === PAUSE TestAccAWSBatchComputeEnvironment_Tags === RUN TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources === PAUSE TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources === RUN TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources === PAUSE TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources === RUN TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole === PAUSE TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole === CONT TestAccAWSBatchComputeEnvironment_basic === CONT TestAccAWSBatchComputeEnvironment_Tags === CONT TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole === CONT TestAccAWSBatchComputeEnvironment_createFargateSpot --- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole (17.63s) === CONT TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources --- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources (14.25s) === CONT TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources --- PASS: TestAccAWSBatchComputeEnvironment_createFargateSpot (40.50s) === CONT TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags --- PASS: TestAccAWSBatchComputeEnvironment_basic (46.63s) === CONT TestAccAWSBatchComputeEnvironment_createFargate --- PASS: TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources (31.85s) === CONT TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage --- PASS: TestAccAWSBatchComputeEnvironment_createFargate (35.11s) === CONT TestAccAWSBatchComputeEnvironment_createSpot --- PASS: TestAccAWSBatchComputeEnvironment_Tags (82.20s) === CONT TestAccAWSBatchComputeEnvironment_NamePrefix --- PASS: TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage (36.36s) === CONT TestAccAWSBatchComputeEnvironment_createEc2 --- PASS: TestAccAWSBatchComputeEnvironment_createEc2 (34.87s) === CONT TestAccAWSBatchComputeEnvironment_NameGenerated --- PASS: TestAccAWSBatchComputeEnvironment_NamePrefix (64.30s) === CONT TestAccAWSBatchComputeEnvironment_disappears --- PASS: TestAccAWSBatchComputeEnvironment_NameGenerated (45.19s) === CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus --- PASS: TestAccAWSBatchComputeEnvironment_disappears (35.02s) === CONT TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate --- PASS: TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags (149.31s) === CONT TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate --- PASS: TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate (55.25s) === CONT TestAccAWSBatchComputeEnvironment_launchTemplate --- PASS: TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate (60.60s) === CONT TestAccAWSBatchComputeEnvironment_updateServiceRole --- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus (71.12s) === CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus --- PASS: TestAccAWSBatchComputeEnvironment_launchTemplate (36.67s) === CONT TestAccAWSBatchComputeEnvironment_updateState --- PASS: TestAccAWSBatchComputeEnvironment_updateServiceRole (63.10s) --- PASS: TestAccAWSBatchComputeEnvironment_updateState (51.28s) --- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus (194.12s) --- PASS: TestAccAWSBatchComputeEnvironment_createSpot (459.77s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 544.574s
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 🚀.
Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_' ACCTEST_PARALLELISM=4
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_ -timeout 180m
=== RUN TestAccAWSBatchComputeEnvironment_basic
=== PAUSE TestAccAWSBatchComputeEnvironment_basic
=== RUN TestAccAWSBatchComputeEnvironment_disappears
=== PAUSE TestAccAWSBatchComputeEnvironment_disappears
=== RUN TestAccAWSBatchComputeEnvironment_NameGenerated
=== PAUSE TestAccAWSBatchComputeEnvironment_NameGenerated
=== RUN TestAccAWSBatchComputeEnvironment_NamePrefix
=== PAUSE TestAccAWSBatchComputeEnvironment_NamePrefix
=== RUN TestAccAWSBatchComputeEnvironment_createEc2
=== PAUSE TestAccAWSBatchComputeEnvironment_createEc2
=== RUN TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags
=== PAUSE TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags
=== RUN TestAccAWSBatchComputeEnvironment_createSpot
=== PAUSE TestAccAWSBatchComputeEnvironment_createSpot
=== RUN TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage
=== PAUSE TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage
=== RUN TestAccAWSBatchComputeEnvironment_createFargate
=== PAUSE TestAccAWSBatchComputeEnvironment_createFargate
=== RUN TestAccAWSBatchComputeEnvironment_createFargateSpot
=== PAUSE TestAccAWSBatchComputeEnvironment_createFargateSpot
=== RUN TestAccAWSBatchComputeEnvironment_updateState
=== PAUSE TestAccAWSBatchComputeEnvironment_updateState
=== RUN TestAccAWSBatchComputeEnvironment_updateServiceRole
=== PAUSE TestAccAWSBatchComputeEnvironment_updateServiceRole
=== RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus
=== PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus
=== RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus
=== PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus
=== RUN TestAccAWSBatchComputeEnvironment_launchTemplate
=== PAUSE TestAccAWSBatchComputeEnvironment_launchTemplate
=== RUN TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate
=== PAUSE TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate
=== RUN TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate
=== PAUSE TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate
=== RUN TestAccAWSBatchComputeEnvironment_Tags
=== PAUSE TestAccAWSBatchComputeEnvironment_Tags
=== RUN TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources
=== PAUSE TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources
=== RUN TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources
=== PAUSE TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources
=== RUN TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole
=== PAUSE TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole
=== CONT TestAccAWSBatchComputeEnvironment_basic
=== CONT TestAccAWSBatchComputeEnvironment_Tags
=== CONT TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole
=== CONT TestAccAWSBatchComputeEnvironment_createFargateSpot
--- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole (17.63s)
=== CONT TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources
--- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources (14.25s)
=== CONT TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources
--- PASS: TestAccAWSBatchComputeEnvironment_createFargateSpot (40.50s)
=== CONT TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags
--- PASS: TestAccAWSBatchComputeEnvironment_basic (46.63s)
=== CONT TestAccAWSBatchComputeEnvironment_createFargate
--- PASS: TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources (31.85s)
=== CONT TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage
--- PASS: TestAccAWSBatchComputeEnvironment_createFargate (35.11s)
=== CONT TestAccAWSBatchComputeEnvironment_createSpot
--- PASS: TestAccAWSBatchComputeEnvironment_Tags (82.20s)
=== CONT TestAccAWSBatchComputeEnvironment_NamePrefix
--- PASS: TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage (36.36s)
=== CONT TestAccAWSBatchComputeEnvironment_createEc2
--- PASS: TestAccAWSBatchComputeEnvironment_createEc2 (34.87s)
=== CONT TestAccAWSBatchComputeEnvironment_NameGenerated
--- PASS: TestAccAWSBatchComputeEnvironment_NamePrefix (64.30s)
=== CONT TestAccAWSBatchComputeEnvironment_disappears
--- PASS: TestAccAWSBatchComputeEnvironment_NameGenerated (45.19s)
=== CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus
--- PASS: TestAccAWSBatchComputeEnvironment_disappears (35.02s)
=== CONT TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate
--- PASS: TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags (149.31s)
=== CONT TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate
--- PASS: TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate (55.25s)
=== CONT TestAccAWSBatchComputeEnvironment_launchTemplate
--- PASS: TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate (60.60s)
=== CONT TestAccAWSBatchComputeEnvironment_updateServiceRole
--- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus (71.12s)
=== CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus
--- PASS: TestAccAWSBatchComputeEnvironment_launchTemplate (36.67s)
=== CONT TestAccAWSBatchComputeEnvironment_updateState
--- PASS: TestAccAWSBatchComputeEnvironment_updateServiceRole (63.10s)
--- PASS: TestAccAWSBatchComputeEnvironment_updateState (51.28s)
--- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus (194.12s)
--- PASS: TestAccAWSBatchComputeEnvironment_createSpot (459.77s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 544.574s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchComputeEnvironment_' ACCTEST_PARALLELISM=4
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 4 -run=TestAccAWSBatchComputeEnvironment_ -timeout 180m
=== RUN TestAccAWSBatchComputeEnvironment_basic
=== PAUSE TestAccAWSBatchComputeEnvironment_basic
=== RUN TestAccAWSBatchComputeEnvironment_disappears
=== PAUSE TestAccAWSBatchComputeEnvironment_disappears
=== RUN TestAccAWSBatchComputeEnvironment_NameGenerated
=== PAUSE TestAccAWSBatchComputeEnvironment_NameGenerated
=== RUN TestAccAWSBatchComputeEnvironment_NamePrefix
=== PAUSE TestAccAWSBatchComputeEnvironment_NamePrefix
=== RUN TestAccAWSBatchComputeEnvironment_createEc2
=== PAUSE TestAccAWSBatchComputeEnvironment_createEc2
=== RUN TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags
=== PAUSE TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags
=== RUN TestAccAWSBatchComputeEnvironment_createSpot
=== PAUSE TestAccAWSBatchComputeEnvironment_createSpot
=== RUN TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage
=== PAUSE TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage
=== RUN TestAccAWSBatchComputeEnvironment_createFargate
=== PAUSE TestAccAWSBatchComputeEnvironment_createFargate
=== RUN TestAccAWSBatchComputeEnvironment_createFargateSpot
=== PAUSE TestAccAWSBatchComputeEnvironment_createFargateSpot
=== RUN TestAccAWSBatchComputeEnvironment_updateState
=== PAUSE TestAccAWSBatchComputeEnvironment_updateState
=== RUN TestAccAWSBatchComputeEnvironment_updateServiceRole
=== PAUSE TestAccAWSBatchComputeEnvironment_updateServiceRole
=== RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus
=== PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus
=== RUN TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus
=== PAUSE TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus
=== RUN TestAccAWSBatchComputeEnvironment_launchTemplate
=== PAUSE TestAccAWSBatchComputeEnvironment_launchTemplate
=== RUN TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate
=== PAUSE TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate
=== RUN TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate
=== PAUSE TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate
=== RUN TestAccAWSBatchComputeEnvironment_Tags
=== PAUSE TestAccAWSBatchComputeEnvironment_Tags
=== RUN TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources
=== PAUSE TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources
=== RUN TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources
=== PAUSE TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources
=== RUN TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole
=== PAUSE TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole
=== CONT TestAccAWSBatchComputeEnvironment_basic
=== CONT TestAccAWSBatchComputeEnvironment_updateServiceRole
=== CONT TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole
=== CONT TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources
--- PASS: TestAccAWSBatchComputeEnvironment_createEc2WithoutComputeResources (18.81s)
=== CONT TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources
--- PASS: TestAccAWSBatchComputeEnvironment_createSpotWithoutIamFleetRole (19.08s)
=== CONT TestAccAWSBatchComputeEnvironment_Tags
--- PASS: TestAccAWSBatchComputeEnvironment_basic (35.98s)
=== CONT TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate
--- PASS: TestAccAWSBatchComputeEnvironment_createUnmanagedWithComputeResources (33.86s)
=== CONT TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate
--- PASS: TestAccAWSBatchComputeEnvironment_updateServiceRole (59.89s)
=== CONT TestAccAWSBatchComputeEnvironment_launchTemplate
--- PASS: TestAccAWSBatchComputeEnvironment_Tags (76.47s)
=== CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus
--- PASS: TestAccAWSBatchComputeEnvironment_launchTemplate (38.28s)
=== CONT TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus
--- PASS: TestAccAWSBatchComputeEnvironment_UpdateSecurityGroupsAndSubnets_Fargate (63.88s)
=== CONT TestAccAWSBatchComputeEnvironment_NamePrefix
--- PASS: TestAccAWSBatchComputeEnvironment_UpdateLaunchTemplate (66.99s)
=== CONT TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags
--- PASS: TestAccAWSBatchComputeEnvironment_NamePrefix (38.53s)
=== CONT TestAccAWSBatchComputeEnvironment_createEc2
--- PASS: TestAccAWSBatchComputeEnvironment_createEc2 (38.38s)
=== CONT TestAccAWSBatchComputeEnvironment_createFargateSpot
--- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MaxVcpus (83.60s)
=== CONT TestAccAWSBatchComputeEnvironment_updateState
--- PASS: TestAccAWSBatchComputeEnvironment_createFargateSpot (35.86s)
=== CONT TestAccAWSBatchComputeEnvironment_NameGenerated
--- PASS: TestAccAWSBatchComputeEnvironment_updateState (55.68s)
=== CONT TestAccAWSBatchComputeEnvironment_createFargate
--- PASS: TestAccAWSBatchComputeEnvironment_NameGenerated (35.91s)
=== CONT TestAccAWSBatchComputeEnvironment_disappears
--- PASS: TestAccAWSBatchComputeEnvironment_createEc2_DesiredVcpus_Ec2KeyPair_ImageId_ComputeResourcesTags (139.26s)
=== CONT TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage
--- PASS: TestAccAWSBatchComputeEnvironment_createFargate (37.36s)
=== CONT TestAccAWSBatchComputeEnvironment_createSpot
--- PASS: TestAccAWSBatchComputeEnvironment_disappears (34.12s)
--- PASS: TestAccAWSBatchComputeEnvironment_createSpot_AllocationStrategy_BidPercentage (39.18s)
--- PASS: TestAccAWSBatchComputeEnvironment_ComputeResources_MinVcpus (200.75s)
--- PASS: TestAccAWSBatchComputeEnvironment_createSpot (455.75s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 730.891s
@gmazelier Thanks for the contribution 👏. |
This has been released in version 3.38.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Closes #16592
Closes #12543
Requires #16850 to be fully usable
Release note for CHANGELOG:
Output from acceptance testing: