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

ec2_vpc_nat_gateway should support tags #345

Closed
acrawly opened this issue Jan 5, 2021 · 2 comments · Fixed by #372
Closed

ec2_vpc_nat_gateway should support tags #345

acrawly opened this issue Jan 5, 2021 · 2 comments · Fixed by #372
Assignees
Labels
affects_2.10 feature This issue/PR relates to a feature request module module

Comments

@acrawly
Copy link

acrawly commented Jan 5, 2021

SUMMARY

The ec2_vpc_nat_gateway module does not support tags and it should. NAT Gateways support tags in AWS.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

The module name is ec2_vpc_nat_gateway

ADDITIONAL INFORMATION

The ec2_vpc_nat_gateway should accept a dictionary of tags, like the internet gateway module (as documented here).

- name: setup NAT gateways
  tags: always
  ec2_vpc_nat_gateway:
    profile: your_aws_profile
    state: present
    region: us-west-1
    subnet_id: "{{ item }}"
    if_exist_do_not_create: yes
    tags: #<-- This is currently not supported
      - Name: MyNATGateway
      - Purpuse: NATing things 
  loop: "{{nat_subnet_list}}" #This is an array of subnet IDs in format `nat_subnet_id: subnet-12345, subnet-54321`
@alinabuzachis alinabuzachis self-assigned this Jan 6, 2021
@alinabuzachis alinabuzachis added feature This issue/PR relates to a feature request affects_2.10 labels Jan 6, 2021
@ansibullbot
Copy link

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link

@ansibullbot ansibullbot added the module module label Jan 13, 2021
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 26, 2021
…ble-collections#345)

- implements tags feature for NAT gateway
- adds integration test tasks for tags feature
- refactor integration tests (overall) removing hard-coded parameters
- add missing integration test tasks without CHECK_MODE
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 26, 2021
…ble-collections#345)

- implements tags feature for NAT gateway
- adds integration test tasks for tags feature
- refactor integration tests (overall) removing hard-coded parameters
- add missing integration test tasks without CHECK_MODE
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 26, 2021
…ble-collections#345)

- implements tags feature for NAT gateway
- adds integration test tasks for tags feature
- refactor integration tests (overall) removing hard-coded parameters
- add missing integration test tasks without CHECK_MODE
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 26, 2021
…ble-collections#345)

- implements tags feature for NAT gateway
- adds integration test tasks for tags feature
- refactor integration tests (overall) removing hard-coded parameters
- add missing integration test tasks without CHECK_MODE
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 28, 2021
…ble-collections#345)

- implements tags feature for NAT gateway
- adds integration test tasks for tags feature
- refactor integration tests (overall) removing hard-coded parameters
- add missing integration test tasks without CHECK_MODE
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 29, 2021
…lections#345)

 * implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 29, 2021
…lections#345)

 * implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 29, 2021
…lections#345)

 * implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jan 29, 2021
…lections#345)

 * implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>
tremble pushed a commit that referenced this issue Feb 1, 2021
* implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>

Co-authored-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jul 16, 2021
…nsible-collections#345) (ansible-collections#372)

* implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>

Co-authored-by: Alina Buzachis <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@b7afd18
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jul 19, 2021
…lections#345) (ansible-collections#372)

* implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>

Co-authored-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue Jul 19, 2021
…lections#345) (ansible-collections#372)

* implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>

Co-authored-by: Alina Buzachis <[email protected]>
danielcotton pushed a commit to danielcotton/community.aws that referenced this issue Nov 23, 2021
…lections#345) (ansible-collections#372)

* implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>

Co-authored-by: Alina Buzachis <[email protected]>
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this issue May 25, 2022
s3_bucket/test: use one bucket per scenario

Reviewed-by: Ansibullbot manages ticket workflow
             https://github.com/ansibullbot
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this issue May 25, 2022
…lections#345) (ansible-collections#372)

* implement tags feature for NAT gateway
 * add integration test tasks for tags feature
 * refactor integration tests (overall) removing hard-coded parameters
 * add missing integration test tasks without CHECK_MODE
 * include until loop for some tasks as they failed during the integration

 * added code to support tags in ec2_vap_nat_gateway - return error 'NoneType' object has no attribute 'get' because of curr_tags seems to remain None
 * removed tests in check_mode because not working due to DRY_RUN_GATEWAY
 * Addressed reviewers comments

Signed-off-by: Alina Buzachis <[email protected]>

Co-authored-by: Alina Buzachis <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@b7afd18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.10 feature This issue/PR relates to a feature request module module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants