forked from abelnieva/API-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added execution example of terraform
- Loading branch information
Ruben Galeano
committed
Dec 30, 2020
1 parent
a5b9f13
commit daee5a3
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,35 @@ var.myip | |
|
||
Enter a value: 57.123.221.88 # IP de ejemplo, sustituir por la personal! | ||
|
||
$ ./terraform apply plan | ||
|
||
... | ||
Apply complete! Resources: 8 added, 0 changed, 8 destroyed. | ||
|
||
The state of your infrastructure has been saved to the path | ||
below. This state is required to modify and destroy your | ||
infrastructure, so keep it safe. To inspect the complete state | ||
use the `terraform show` command. | ||
|
||
State path: terraform.tfstate | ||
|
||
Outputs: | ||
|
||
jenkins_instance_id = "i-03182e2534954fdf5" | ||
jenkins_instance_security_group_id = "sg-0e00e629e32749ec5" | ||
jenkins_url = "http://112.23.18.67:8080" | ||
key_pair = <<EOT | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEAsk5rieVA2zwpo86gAZGq37L4aRCC2YeHxZ4LxFqTJ1e+9pHB | ||
.... | ||
S6Vm27ZFT3Rbbt1KRB64AlfLGEZ+hB07JVzz4RSQvZkUw3Whosk8qUQ= | ||
-----END RSA PRIVATE KEY----- | ||
EOT | ||
public_ip = "112.23.18.67" | ||
s3_bucket_production = "es-unir-production-s3-XXXXX-artifacts" | ||
s3_bucket_staging = "es-unir-production-s3-XXXXX-artifacts" | ||
ssh_connection = "ssh -i resources/key.pem [email protected]" | ||
... | ||
``` | ||
|
||
|