This file contains hidden or 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
| stages: | |
| - test | |
| - deploy | |
| variables: | |
| NAMESPACE: "default" | |
| test_stack: | |
| stage: test | |
| variables: |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -e | |
| # Install system dependencies | |
| pushd "/tmp" | |
| yum update -y | |
| yum install -y git jq | |
| amazon-linux-extras install docker -y |
This file contains hidden or 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
| data "template_file" "init" { | |
| template = "${file("${path.module}/setup.sh")}" | |
| } | |
| resource "aws_instance" "esk8s_instance" { | |
| ami = "${var.instance_ami_id}" | |
| instance_type = "${var.instance_type}" | |
| associate_public_ip_address = true | |
| subnet_id = "${var.instance_subnet_id}" | |
| vpc_security_group_ids = ["${aws_security_group.esk8s_instance_sg.id}"] |
NewerOlder