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
variable "default_tags" { | |
type = map | |
default = null | |
} | |
variable "ssh_allowed_ips" { | |
type = list(string) | |
default = null | |
description = "Daftar alamat IP yang dapat melakukan ssh ke server" | |
} |
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
default_tags = { | |
"Env" = "demo" | |
"Name" = "my-ec2-demo" | |
"FromTerraform" = "true" | |
} | |
ssh_key_file = "~/.ssh/id_rsa" | |
# Masukkan alamat IP dari komputer yang digunakan untuk mengakses server | |
# Jika ingin memperbolehkan semua IP maka gunakan "0.0.0.0/0" |
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
# Provider yang digunakan adalah AWS | |
# Versi dikunci pada 3.22.x | |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.22.0" | |
} | |
} | |
} |
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
output "endpoints" { | |
value = { | |
ssh_access = "ssh ubuntu@${aws_instance.demo.public_ip}" | |
public_ip = aws_instance.demo.public_ip | |
public_dns = aws_instance.demo.public_dns | |
} | |
} |
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
# This is a single line comment | |
Feature: Performing a Skincarisma Search | |
As a user on the Skincarisma search page | |
I want to search for Selenium-Webdriver | |
Because I want to learn more about it | |
Background: | |
Given I open the url "https://www.skincarisma.com/" |
OlderNewer