-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
aws: Add support for 'requiresAttributes' in aws_ecs_task_definition #6439
Comments
Hi, We'd welcome PRs for adding that field though. It looks like the best way to implement this currently would be via |
@radeksimko does this mean that terraform is strictly bound to docker remote api 1.19? There is a newer ecs version out there and containers placed with terraform won't run on hosts that have a mismatched remote api Unless I'm misunderstanding what the requires attribute really means, which may be the case. Is it saying it needs a host that has 1.19+? |
@devshorts I'm not sure how it's related to this issue exactly, but the |
I looked into this more deeply to find out that there's no way to specify custom These attributes are for internal use only and they are inferred from some other attributes, e.g. the whole task definition will automatically require [
{
"cpu": 256,
"essential": true,
"image": "ghost:latest",
"memory": 512,
"name": "blablah",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "myLogGroup",
"awslogs-region": "eu-west-2"
}
}
}
] Custom attributesThe only way to assign custom attributes is to use e.g.
These IDs vary from the EC2 instance IDs, which is the main reason I decided not to implement hypothetical FilteringIf you decide to assign custom attributes in user-data/cloud-config scripts or different way, you should be then able to use
I hope it all makes sense - if not, let me know! 😃 |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
v0.6.15
Affected Resource
Problem
aws_ecs_task_definition
documentation does not tell how to configurerequiresAttributes
Example:
Is it a matter of documentation that is not up-to-date, or is it missing in the api code also?
Thanks
The text was updated successfully, but these errors were encountered: