Skip to content

ecs_service plugin not updating the "placement_constraints" property #1414

Open
@anirudh-here-com

Description

@anirudh-here-com

Summary

When I try to update "placement_constraints" property of an already existing service, its not getting reflected on the aws console.
However, it works perfectly fine when the service does not exist and needs to be created

Issue Type

Bug Report

Component Name

ecs_service

Ansible Version

ansible [core 2.13.2]
  config file = None
  configured module search path = ['/Users/asimha/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/6.2.0/libexec/lib/python3.10/site-packages/ansible
  ansible collection location = /Users/asimha/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.6 (main, Aug 11 2022, 13:49:25) [Clang 13.1.6 (clang-1316.0.21.2.5)]
  jinja version = 3.1.2
  libyaml = True

Collection Versions

Collection    Version
------------- -------
amazon.aws    4.1.0  
community.aws 4.0.0  

AWS SDK versions

Name: boto3
Version: 1.24.45
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
Author-email: 
License: Apache License 2.0
Location: /usr/local/lib/python3.10/site-packages
Requires: botocore, jmespath, s3transfer
Required-by: awswrangler, redshift-connector
---
Name: botocore
Version: 1.27.46
Summary: Low-level, data-driven core of boto 3.
Home-page: https://github.com/boto/botocore
Author: Amazon Web Services
Author-email: 
License: Apache License 2.0
Location: /usr/local/lib/python3.10/site-packages
Requires: jmespath, python-dateutil, urllib3
Required-by: aiobotocore, awswrangler, boto3, redshift-connector, s3transfer

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

Running the ansible playbook containing ecs_service block which has "placement_constraints" parameter defined

Expected Results

placement-constraints property should be set and visible in aws console.

Actual Results

placement-constraints property is not set in aws console

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bughas_prmodulemodulepluginsplugin (any type)python3waiting_on_contributorNeeds help. Feel free to engage to get things unblocked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions