Skip to content
Snippets Groups Projects
Commit 845fa4d4 authored by Diaz de Arcaya Serrano, Josu's avatar Diaz de Arcaya Serrano, Josu
Browse files

Adjust repository format according to issue #1

parent fb9d081c
No related branches found
No related tags found
No related merge requests found
---
iac:
- tf
...
#!/bin/bash
# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
usage="usage: landing-script.sh [-h] [-i] [-a] [-d]
This script serves as the entrypoint for the IEM
arguments:
-h show this help message and exit
-i init configuration
-a create or update infrastructure
-d destroy infrastructure"
init() {
terraform init
}
apply() {
terraform apply -auto-approve
}
destroy() {
terraform destroy -auto-approve
}
while getopts "h?iad" opt; do
case "$opt" in
h|\?)
echo "$usage"
exit 0
;;
i) init
;;
a) apply
;;
d) destroy
;;
esac
done
#!/bin/bash
terraform init
terraform apply -auto-approve
terraform destroy -auto-approve
File moved
---
input:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
output:
- instance_server0_ip
engine: terraform
...
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment