Skip to content
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

ECS task definition wants to be replaced every Terraform run due with sysdig_fargate_workload_agent data block #31

Open
Jordy-devops opened this issue Oct 25, 2024 · 0 comments

Comments

@Jordy-devops
Copy link

Hi,

I am using sysdig terraform provider with the data block sysdig_fargate_workload_agent to assign container definitions to a task definition.
But now every Terraform run, the ECS task definition wants to be re-created as the following inputs are not being set in Terraform but they are being added by AWS, and thus mismatching every Terraform run :

  - mountPoints      = []
    name             = "SysdigInstrumentation"
  - portMappings     = []
  - systemControls   = []
  - volumesFrom      = []

I thought of fixing this by adding mountPoints = [] portMappings = [] systemControls = [] and volumesFrom = [] but sysdig_fargate_workload_agent does not provide the option to set this for the Sysdig agent container definition.
I can solve it also by using the complete json task definition, but that makes the use of sysdig_fargate_workload_agent obsolete.

Any ideas?
Thanks, Jordy.

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

No branches or pull requests

1 participant