Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

na_cloudmanager_connector_aws

Chris Archibald edited this page Apr 8, 2021 · 2 revisions
orphan:

netapp.cloudmanager.na_cloudmanager_connector_aws -- NetApp Cloud Manager connector for AWS

Note

This plugin is part of the netapp.cloudmanager collection (version 21.4.0).

To install it use: ansible-galaxy collection install netapp.cloudmanager.

To use it in a playbook, specify: netapp.cloudmanager.na_cloudmanager_connector_aws.

.. versionadded:: 21.3.0 of netapp.cloudmanager

  • Create or delete Cloud Manager connector for AWS.
Parameter Choices/Defaults Comments
account_id
string
The NetApp tenancy account ID.
ami
string
The image ID.
associate_public_ip_address
boolean
    Choices:
  • no
  • yes ←
Indicates whether to associate a public IP address to the instance. If not provided, the association will be done based on the subnet's configuration.
aws_tag
list / elements=dictionary
Additional tags for the AWS EC2 instance.
tag_key
string
The key of the tag.
tag_value
string
The tag value.
client_id
string
The unique client ID of the Connector.
company
string / required
The name of the company of the user.
enable_termination_protection
boolean
    Choices:
  • no ←
  • yes
Indicates whether to enable termination protection on the instance.
iam_instance_profile_name
string / required
The name of the instance profile for the Connector.
instance_id
string
The ID of the EC2 instance used for delete.
instance_type
string
Default:
"t3.xlarge"
The type of instance (for example, t3.xlarge). At least 4 CPU and 16 GB of memory are required.
key_name
string / required
The name of the key pair to use for the Connector instance.
name
string / required
The name of the Cloud Manager connector for AWS to manage.
proxy_password
string
The proxy password, if using a proxy to connect to the internet.
proxy_url
string
The proxy URL, if using a proxy to connect to the internet.
proxy_user_name
string
The proxy user name, if using a proxy to connect to the internet.
refresh_token
string / required
The refresh token for NetApp Cloud Manager API operations.
region
string / required
The region where the Cloud Manager Connector will be created.
security_group_ids
list / elements=string / required
The IDs of the security groups for the instance, multiple security groups can be provided separated by ','.
state
string
    Choices:
  • present ←
  • absent
Whether the specified Cloud Manager connector for AWS should exist or not.
subnet_id
string / required
The ID of the subnet for the instance.

Note

  • Support check_mode.
  • The modules prefixed with cloudmanager_netapp are built to Manage AWS/GCP/Azure CLOUDMANAGER.
- name: Create NetApp Cloud Manager connector for AWS
  netapp.cloudmanager.na_cloudmanager_connector_aws:
    state: present
    refresh_token: "{{ xxxxxxxxxxxxxxx }}"
    name: bsuhas_ansible_occm
    region: us-west-1
    key_name: dev_automation
    subnet_id: subnet-xxxxx
    ami: "{{ ami-xxxxxxxxxxxxxxxxx }}"
    security_group_ids: [sg-xxxxxxxxxxx]
    iam_instance_profile_name: OCCM_AUTOMATION
    account_id: "{{ account-xxxxxxx }}"
    company: NetApp
    proxy_url: abc.com
    proxy_user_name: xyz
    proxy_password: abcxyz
    aws_tag: [
        {tag_key: abc,
        tag_value: a123}]

- name: Delete NetApp Cloud Manager connector for AWS
  netapp.cloudmanager.na_cloudmanager_connector_aws:
    state: absent
    name: ansible
    region: us-west-1
    instance_id: i-xxxxxxxxxxxxx
    client_id: xxxxxxxxxxxxxxxxxxx

Authors