mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 23:02:12 +03:00
changes
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
variable "APP_INSTANCE_AMI" { default = "" }
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
resource "aws_key_pair" "mykeypair" {
|
resource "aws_key_pair" "mykeypair" {
|
||||||
key_name = "mykeypair"
|
key_name = "mykeypair"
|
||||||
public_key = "${file("${var.PATH_TO_PUBLIC_KEY}")}"
|
public_key = "${file("${var.PATH_TO_PUBLIC_KEY}")}"
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = ["public_key"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ pip install awscli
|
|||||||
|
|
||||||
# install terraform
|
# install terraform
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
wget -q https://releases.hashicorp.com/terraform/0.7.4/terraform_0.7.4_linux_amd64.zip
|
wget -q https://releases.hashicorp.com/terraform/0.7.7/terraform_0.7.7_linux_amd64.zip
|
||||||
unzip terraform_0.7.4_linux_amd64.zip
|
unzip terraform_0.7.7_linux_amd64.zip
|
||||||
# install packer
|
# install packer
|
||||||
wget -q https://releases.hashicorp.com/packer/0.10.2/packer_0.10.2_linux_amd64.zip
|
wget -q https://releases.hashicorp.com/packer/0.10.2/packer_0.10.2_linux_amd64.zip
|
||||||
unzip packer_0.10.2_linux_amd64.zip
|
unzip packer_0.10.2_linux_amd64.zip
|
||||||
# clean up
|
# clean up
|
||||||
apt-get clean
|
apt-get clean
|
||||||
rm terraform_0.7.4_linux_amd64.zip
|
rm terraform_0.7.7_linux_amd64.zip
|
||||||
rm packer_0.10.2_linux_amd64.zip
|
rm packer_0.10.2_linux_amd64.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user