145b79ef0e
* ec2_instance/ec2_instance_info : Fixup sanity test errors * Move ec2_instance integration tests to use aws_defaults * Search for the AMI instead of hardcoding an AMI * Make our VPC CIDR variable * Remove AZ assumptions - no guarantees about specific AZs being available * Make sure we terminate instances when we're done with them. * Add a 10 second pause for IAM roles to become available before using them * Wait on instance changes by default * Switch out t2 instances for t3 they're cheaper and have more CPU available * Pull t3.nano instance info a little earlier * rework vpc_name and vpc_cidr a little * Mark ec2_instance tests unsupported for now, they take too long
14 lines
601 B
YAML
14 lines
601 B
YAML
---
|
|
# defaults file for ec2_instance
|
|
ec2_instance_name: '{{ resource_prefix }}-node'
|
|
ec2_instance_owner: 'integration-run-{{ resource_prefix }}'
|
|
ec2_instance_type: 't3.micro'
|
|
ec2_ami_name: 'amzn2-ami-hvm-2.*-x86_64-gp2'
|
|
|
|
vpc_name: '{{ resource_prefix }}-vpc'
|
|
vpc_seed: '{{ resource_prefix }}'
|
|
vpc_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.0.0/16'
|
|
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24'
|
|
subnet_a_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.32.'
|
|
subnet_b_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.33.0/24'
|
|
subnet_b_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.33.'
|