Skip to content

Commit

Permalink
Merge pull request #75 from rackspace-infrastructure-automation/jcc/m…
Browse files Browse the repository at this point in the history
…pcsupeng-1360tf11

Userdata CFN Bugfix for terraform 0.11
  • Loading branch information
twistedgrim committed Jul 21, 2020
2 parents 03e4d67 + 9a94667 commit 3fdef53
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module creates one or more autorecovery instances.

```HCL
module "ar" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery//?ref=v0.0.25"
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery//?ref=v0.0.27"
ec2_os = "amazon"
subnets = ["${module.vpc.private_subnets}"]
Expand Down Expand Up @@ -108,4 +108,3 @@ Using [aws-terraform-cloudwatch\_alarm](https://github.com/rackspace-infrastruct
| ar\_instance\_az\_list | List of resulting Instance availability zones |
| ar\_instance\_id\_list | List of resulting Instance IDs |
| ar\_instance\_ip\_list | List of resulting Instance IP addresses |

2 changes: 1 addition & 1 deletion examples/custom_cw_agent_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module "vpc" {
data "aws_region" "current_region" {}

module "ec2_ar_with_codedeploy" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery?ref=v0.0.25"
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery?ref=v0.0.27"

ec2_os = "rhel6"
instance_count = "1"
Expand Down
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data "aws_ami" "amazon_centos_7" {
}

module "ec2_ar" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery?ref=v0.0.25"
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery?ref=v0.0.27"

ec2_os = "centos7"
instance_count = "3"
Expand Down
2 changes: 1 addition & 1 deletion examples/unmanaged.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module "sns" {
}

module "unmanaged_ar" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery?ref=v0.0.25"
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery?ref=v0.0.27"

ec2_os = "centos7"
instance_count = "1"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* ```HCL
* module "ar" {
* source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery//?ref=v0.0.25"
* source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-ec2_autorecovery//?ref=v0.0.27"
*
* ec2_os = "amazon"
* subnets = ["${module.vpc.private_subnets}"]
Expand Down
2 changes: 1 addition & 1 deletion text/rhel_centos_8_userdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [[ $ssm_running != "0" ]]; then
else
if [[ -r "/tmp/ssm_agent_install" ]]; then : ;
else mkdir -p /tmp/ssm_agent_install; fi
curl https://s3.<obj>region</obj>.amazonaws.com/amazon-ssm-<obj>region</obj>/latest/linux_amd64/amazon-ssm-agent.rpm -o /tmp/ssm_agent_install/amazon-ssm-agent.rpm
curl https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm -o /tmp/ssm_agent_install/amazon-ssm-agent.rpm
rpm -Uvh /tmp/ssm_agent_install/amazon-ssm-agent.rpm
ssm_running=$( ps -ef | grep [a]mazon-ssm-agent | wc -l )
systemctl=$( command -v systemctl | wc -l )
Expand Down

0 comments on commit 3fdef53

Please sign in to comment.