ec2_win_password
Gets the default administrator password for EC2 Windows instances
Collection: community.aws
Full Name: community.aws.ec2_win_password
Synopsis
Gets the default administrator password for EC2 Windows instances
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| instance_id | str | yes | ||
| key_data | str | |||
| key_file | path | |||
| key_passphrase | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| validate_certs | bool | true | ||
| wait | bool | false | ||
| wait_timeout | int | 120 |
Example
yaml
# Example of getting a password
- name: get the Administrator password
community.aws.ec2_win_password:
profile: my-boto-profile
instance_id: i-XXXXXX
region: us-east-1
key_file: "~/aws-creds/my_test_key.pem"
# Example of getting a password using a variable
- name: get the Administrator password
community.aws.ec2_win_password:
profile: my-boto-profile
instance_id: i-XXXXXX
region: us-east-1
key_data: "{{ ec2_private_key }}"
# Example of getting a password with a password protected key
- name: get the Administrator password
community.aws.ec2_win_password:
profile: my-boto-profile
instance_id: i-XXXXXX
region: us-east-1
key_file: "~/aws-creds/my_protected_test_key.pem"
key_passphrase: "secret"
# Example of waiting for a password
- name: get the Administrator password
community.aws.ec2_win_password:
profile: my-boto-profile
instance_id: i-XXXXXX
region: us-east-1
key_file: "~/aws-creds/my_test_key.pem"
wait: true
wait_timeout: 45