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

Add Associated IAM role to Redshift cluster #1880

Open
1 task done
RonneGisun opened this issue Jul 10, 2023 · 1 comment
Open
1 task done

Add Associated IAM role to Redshift cluster #1880

RonneGisun opened this issue Jul 10, 2023 · 1 comment

Comments

@RonneGisun
Copy link

Summary

I am creating new redhsift clusters, but adding associated IAM polices is not supported, it would be really helpful if this feature was included, as currently it has to be associated manually after the playbook runs.

Issue Type

Feature Idea

Component Name

community.aws.redshift

Additional Information

- name: "Create {{ redshift_cluster_identifier }} Redshift Cluster"
  vars:
    ansible_python_interpreter: /usr/bin/python3
  community.aws.redshift:
    command: create
    node_type: "{{ redshift_node_type }}"
    identifier: "{{ redshift_cluster_identifier }}"
    username: "{{ redshift_cluster_admin_username }}"
    password: "{{ redshift_cluster_admin_password }}"
    cluster_type: "{{ redshift_cluster_type }}"
    number_of_nodes: "{{ redshift_number_of_nodes }}"
    cluster_subnet_group_name: "{{ redshift_sg.cluster_subnet_group.name }}"
    vpc_security_groups:
      - "{{ aws_sg.group_id }}"
    availability_zone: "{{ redshift_availability_zone|default(omit) }}"
    associated_iam_roles: "{{ LIST_OF_IAM_ROLES }}"
    db_name: "{{ redshift_db_name }}"
    port: "{{ redshift_cluster_port }}"
    cluster_parameter_group_name: "{{ redshift_cluster_parameter_group_name }}"
    encrypted: true
    preferred_maintenance_window: "{{ redhsift_preferred_maintenance_window|default(omit) }}"
    automated_snapshot_retention_period: "{{ redshift_automated_snapshot_retention_period }}"
    region: "{{ application_region }}"
    tags:
      Environment: "{{ application_environment }}"
      Application: "{{ application_name }}"
    wait: "{{ redshift_cluster_wait|default('false') }}"
    wait_timeout: "{{ redshift_cluster_wait_timeout|default('300') }}"
  register: redshift

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@KamilBlaz
Copy link

Hello, I will take this issue and create new PR

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

Successfully merging a pull request may close this issue.

2 participants