@@ -13,6 +13,8 @@ module "admin_tier" {
1313 source = "git::https://github.com/cloudposse/tf_instance.git?ref=master"
1414 ansible_playbook = "${var.ansible_playbook}"
1515 ansible_arguments = "${var.ansible_arguments}"
16+ ansible_envs = "${var.ansible_envs}"
17+ ansible_dry_run = "${var.ansible_dry_run}"
1618 ssh_key_pair = "${var.ssh_key_pair}"
1719 github_api_token = "${var.github_api_token}"
1820 github_organization = "${var.github_organization}"
@@ -60,6 +62,8 @@ resource "aws_ami_from_instance" "example" {
6062| ` github_team ` | `` | GitHub team | Yes |
6163| ` ansible_playbook ` | `` | Path to the playbook - required for ` tf_ansible ` (e.g. ` ./admin_tier.yml ` ) | Yes |
6264| ` ansible_arguments ` | [ ] | List of ansible arguments (e.g. ` ["--user=ubuntu"] ` ) | No |
65+ | ` ansible_envs ` | [ ] | List of ansible envs (e.g. ` ["ansible_ssh_pass=${var.ansible_ssh_password}"] ` ) | No |
66+ | ` ansible_dry_run ` | ` false ` | The Ansible run without changes | No |
6367| ` instance_type ` | ` t2.micro ` | The type of the creating instance (e.g. ` t2.micro ` ) | No |
6468| ` vpc_id ` | `` | The id of the VPC that the creating instance security group belongs to | Yes |
6569| ` security_groups ` | [ ] | List of Security Group IDs allowed to connect to creating instance | Yes |
@@ -83,8 +87,10 @@ resource "aws_ami_from_instance" "example" {
8387| Name | Description |
8488| :--------------------| :-------------------------------------------------------------------|
8589| ` id ` | Disambiguated ID |
86- | ` public_hostname ` | Normalized name |
90+ | ` public_dns ` | Normalized name |
8791| ` public_ip ` | Normalized namespace |
92+ | ` private_dns ` | Normalized name |
93+ | ` private_ip ` | Normalized namespace |
8894| ` ssh_key_pair ` | Name of used AWS SSH key |
8995| ` security_group_id ` | ID on the new AWS Security Group associated with creating instance |
9096| ` role ` | Name of AWS IAM Role associated with creating instance |
0 commit comments