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

PrivateDnsEnabled in create_vpc_endpoint - ec2_vpc_endpoint #1719

Open
1 task done
krisek opened this issue Aug 30, 2023 · 4 comments
Open
1 task done

PrivateDnsEnabled in create_vpc_endpoint - ec2_vpc_endpoint #1719

krisek opened this issue Aug 30, 2023 · 4 comments
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type) python3 waiting_on_contributor Needs help. Feel free to engage to get things unblocked

Comments

@krisek
Copy link
Contributor

krisek commented Aug 30, 2023

Summary

I don't find an option to enable private dns in the ec2_vpc_endpoint module. Interestingly boto3 documentation says that the PrivateDnsEnabled parameter in the create_vpc_endpoint call is by default True.

I don't see any sing of this in ec2_vpc_endpoint.py, can be that it would be a 2 liner in ec2_vpc_endpoint.create_vpc_endpoint (+docs update) to add this parameter?

Issue Type

Bug Report

Component Name

ec2_vpc_endpoint

Ansible Version

$ ansible --version

ansible [core 2.14.4]
  config file = /home/kris/projects/k8s-ansible/cluster-manage/ansible.cfg
  configured module search path = ['/home/kris/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /var/tmp/ansible/lib/python3.11/site-packages/ansible
  ansible collection location = /home/kris/.ansible/collections:/usr/share/ansible/collections
  executable location = /var/tmp/ansible/bin/ansible
  python version = 3.11.4 (main, Jun  7 2023, 10:13:09) [GCC 12.2.0] (/var/tmp/ansible/bin/python)
  jinja version = 3.1.2
  libyaml = False

Collection Versions

$ ansible-galaxy collection list
amazon.aws                    7.0.0-dev0                                                                                                                                                                                  
...

AWS SDK versions

$ pip show boto boto3 botocore
Name: boto
Version: 2.49.0
Summary: Amazon Web Services Library
Home-page: https://github.com/boto/boto/
Author: Mitch Garnaat
Author-email: [email protected]
License: MIT
Location: /var/tmp/ansible/lib/python3.11/site-packages
Requires: 
Required-by: 
---
Name: boto3
Version: 1.26.100
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: /var/tmp/ansible/lib/python3.11/site-packages
Requires: botocore, jmespath, s3transfer
Required-by: 
---
Name: botocore
Version: 1.29.100
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: /var/tmp/ansible/lib/python3.11/site-packages
Requires: jmespath, python-dateutil, urllib3
Required-by: awscli, boto3, s3transfer

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

  - name: apply vpc endpoint
    amazon.aws.ec2_vpc_endpoint:
      state: present
      region: "{{ region }}"
      vpc_id: "{{ vpc_info.vpcs.0.vpc_id }}"
      service: "{{ item.name }}"
      vpc_endpoint_security_groups: "{{ security_group_info.security_groups | map(attribute='group_id') }}"
      vpc_endpoint_subnets: "{{ peerable_subnets| selectattr('availability_zone', subnet_filter, item.az)  | map(attribute='subnet_id') }}"
      vpc_endpoint_type: Interface
      purge_tags: n
      tags: "{{ default_tags | combine({'Name': service.name | default('service-' ~ item.name) ~ '-' ~ inventory_hostname ~ '-' ~ item.az}) }}"
      profile: "profile_{{ aws_account }}"
    register: vpc_endpoint_result
    loop: "{{ service.endpoint_services }}"
    loop_control:
      label: "{{ item.name }}"
    tags: [ implement ]

Expected Results

PrivateDns is enabled (or not?) for the created endpoint

Actual Results

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@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 bug This issue/PR relates to a bug module module plugins plugin (any type) python3 labels Aug 30, 2023
@alinabuzachis
Copy link
Contributor

@krisek Thank you this feature idea. Would you be willing to open a PR request for this suggestion?

@alinabuzachis alinabuzachis added waiting_on_contributor Needs help. Feel free to engage to get things unblocked and removed needs_triage labels Aug 31, 2023
@krisek
Copy link
Contributor Author

krisek commented Sep 6, 2023

sure, but first let get the "other side" fixed ie #1573

abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
…ons#1719)

elasticache: use an up to date node type in example

The cache.m1.small node type is deprecated. It's not replaced by
cache.t3.small.
See: https://aws.amazon.com/elasticache/previous-generation/

Reviewed-by: Mark Chappell
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
…ons#1719)

elasticache: use an up to date node type in example

The cache.m1.small node type is deprecated. It's not replaced by
cache.t3.small.
See: https://aws.amazon.com/elasticache/previous-generation/

Reviewed-by: Mark Chappell
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Oct 24, 2023
…ons#1719)

elasticache: use an up to date node type in example

The cache.m1.small node type is deprecated. It's not replaced by
cache.t3.small.
See: https://aws.amazon.com/elasticache/previous-generation/

Reviewed-by: Mark Chappell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type) python3 waiting_on_contributor Needs help. Feel free to engage to get things unblocked
Projects
None yet
Development

No branches or pull requests

3 participants