Skip to content

Déployer en quelques secondes un site Web avec configuration NGINX et DNS 👨‍💻🌐

Notifications You must be signed in to change notification settings

gforien/create-aws-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-aws-website

Launch an EC2 instance with NGINX and DNS configuration in a few seconds ⚡

Requires aws-cli and a few environment variables corresponding to AWS resources:

$AWS_KEYNAME the name of a pre-existing AWS SSH key
$AWS_HTTPS_SECURITY_GROUP the name of a security group in the default VPC, with open port 80 (and 443 optionnaly)
$AWS_ZONE the ID of a pre-existing DNS zone (ex: Z00859AK9X732H)

👷‍♂️ Launch with Terraform

cd terraform/
terraform plan `
    -var "key=$AWS_KEYNAME" `
    -var "sg=$AWS_HTTPS_SECURITY_GROUP" `
    -var "zone=$AWS_ZONE" `
    -var "target=babasr.aws.gforien.com"
terraform apply -auto-approve `
    -var "key=$AWS_KEYNAME" `
    -var "sg=$AWS_HTTPS_SECURITY_GROUP" `
    -var "zone=$AWS_ZONE" `
    -var "target=babasr.aws.gforien.com"

👷‍♂️ Launch with a hand-made Powershell script

cd powershell/
# dot-source the wrapper script
. ./script.ps1

# execute
Create-AWS-Website babasr.aws.gforien.com

✨ Result

Gabriel Forien
INSA Lyon

About

Déployer en quelques secondes un site Web avec configuration NGINX et DNS 👨‍💻🌐

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published