-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_ecs_task_definition: Support task scoped docker volume configurations #5907
resource/aws_ecs_task_definition: Support task scoped docker volume configurations #5907
Conversation
also being affected by this. couldnt find a workaround for |
@bflad Is there anything else I need to add to this PR to get it merged into a release? |
@camdenfullmer are you able to implement a separate acceptance test instead of modifying the existing one? Duplicating (with minor adjustments) the existing test and test configuration is perfectly fine. We should perform regression testing on both scenarios. 👍 |
Yep, I can do that 👍 |
@bflad Added a new test instead of modifying the existing one. |
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.
Looks great, @camdenfullmer! 🚀
--- PASS: TestAccAWSEcsTaskDefinition_withScratchVolume (4.72s)
--- PASS: TestAccAWSEcsTaskDefinition_withTaskScopedDockerVolume (5.00s)
--- PASS: TestAccAWSEcsTaskDefinition_arrays (5.09s)
--- PASS: TestAccAWSEcsTaskDefinition_withDockerVolume (5.09s)
--- PASS: TestAccAWSEcsTaskDefinition_constraint (5.12s)
--- PASS: TestAccAWSEcsTaskDefinition_withDockerVolumeMinimalConfig (5.12s)
--- PASS: TestAccAWSEcsTaskDefinition_ExecutionRole (12.62s)
--- PASS: TestAccAWSEcsTaskDefinition_basic (13.06s)
--- PASS: TestAccAWSEcsTaskDefinition_changeVolumesForcesNewResource (13.16s)
--- PASS: TestAccAWSEcsTaskDefinition_Inactive (13.76s)
--- PASS: TestAccAWSEcsTaskDefinition_Fargate (17.93s)
--- PASS: TestAccAWSEcsTaskDefinition_withNetworkMode (20.57s)
--- PASS: TestAccAWSEcsTaskDefinition_withTaskRoleArn (21.22s)
--- PASS: TestAccAWSEcsTaskDefinition_withEcsService (63.25s)
This has been released in version 1.39.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "aws" {
version = "~> 1.39.0"
}
# ... other configuration ... |
Thank you both |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Recently support was added for Docker volume configurations for ECS task definitions: #5727
Unfortunately, if you want a task scoped docker volume configuration this implementation doesn't work resulting in the following error:
With the following configuraiton:
It seems that not specifying a value results in
autoprovision
being set tofalse
. Settingautoprovison
totrue
results in an error when the ECS agent tries to run the task.AWS documentation states that
autoprovision
is only used forshared
scope: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-volumes.htmlChanges proposed in this pull request:
Autoprovision
tonil
when using atask
scoped docker volume andautoprovision
is set tofalse
.Questions:
Default
value of false, butfalse
was still picked up as the value. Is there a way to check for no value and set it tonil
instead?