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/" |
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
# 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
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
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
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "3.74.0" | |
} | |
} | |
} | |
###If you don't specify provider configuration, TF will use CLI as the default provider |
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 "aws" { | |
access_key = "${var.aws_access_key}" | |
secret_key = "${var.aws_secret_key}" | |
region = "${var.aws_region}" | |
} | |
resource "aws_vpc" "main" { | |
cidr_block = "10.0.0.0/16" | |
} |
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
terraform { | |
required_providers { | |
heroku = { | |
source = "heroku/heroku" | |
version = "~> 5.0" | |
} | |
} | |
} | |
variable "example_app_name" { |
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
resource "aws_instance" "app" { | |
instance_type = "t2.micro" | |
availability_zone = "us-east-1a" | |
ami = "ami-40d28157" | |
user_data = <<-EOF | |
#!/bin/bash | |
sudo service apache2 start | |
EOF | |
} |
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
{ | |
"builders": [{ | |
"ami_name": "packer-example", | |
"instance_type": "t2.micro", | |
"region": "us-east-1", | |
"type": "amazon-ebs", | |
"source_ami": "ami-40d28157", | |
"ssh_username": "ubuntu" | |
}], | |
"provisioners": [{ |
NewerOlder