Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion files/deploy_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cat << EOM > /var/www/html/index.html
<!-- BEGIN -->
<center><img src="http://${PLACEHOLDER}/${WIDTH}/${HEIGHT}"></img></center>
<center><h2>Meow World!</h2></center>
Welcome to ${PREFIX}'s app. Replace this text with your own.
CATS CHOOSE US; WE DON'T OWN THEM.
<!-- END -->

</div>
Expand Down
9 changes: 9 additions & 0 deletions remote_backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
backend "remote" {
hostname = "app.terraform.io"
organization = "jessie-dltksesh1"
workspaces {
name = "hashicat-aws"
}
}
}
5 changes: 0 additions & 5 deletions terraform.tfvars.example

This file was deleted.

100 changes: 50 additions & 50 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
##############################################################################
# Variables File
#
# Here is where we store the default values for all the variables used in our
# Terraform code. If you create a variable with no default, the user will be
# prompted to enter it (or define it via config file or command line flags.)

variable "prefix" {
description = "This prefix will be included in the name of most resources."
}

variable "region" {
description = "The region where the resources are created."
default = "us-east-1"
}

variable "address_space" {
description = "The address space that is used by the virtual network. You can supply more than one address space. Changing this forces a new resource to be created."
default = "10.0.0.0/16"
}

variable "subnet_prefix" {
description = "The address prefix to use for the subnet."
default = "10.0.10.0/24"
}

variable "instance_type" {
description = "Specifies the AWS instance type."
default = "t2.micro"
}

variable "admin_username" {
description = "Administrator user name for mysql"
default = "hashicorp"
}

variable "height" {
default = "400"
description = "Image height in pixels."
}

variable "width" {
default = "600"
description = "Image width in pixels."
}

variable "placeholder" {
default = "placekitten.com"
description = "Image-as-a-service URL. Some other fun ones to try are fillmurray.com, placecage.com, placebeard.it, loremflickr.com, baconmockup.com, placeimg.com, placebear.com, placeskull.com, stevensegallery.com, placedog.net"
}
##############################################################################
# Variables File
#
# Here is where we store the default values for all the variables used in our
# Terraform code. If you create a variable with no default, the user will be
# prompted to enter it (or define it via config file or command line flags.)
variable "prefix" {
description = "This prefix will be included in the name of most resources."
}
variable "region" {
description = "The region where the resources are created."
default = "us-east-1"
}
variable "address_space" {
description = "The address space that is used by the virtual network. You can supply more than one address space. Changing this forces a new resource to be created."
default = "10.0.0.0/16"
}
variable "subnet_prefix" {
description = "The address prefix to use for the subnet."
default = "10.0.10.0/24"
}
variable "instance_type" {
description = "Specifies the AWS instance type."
default = "t2.micro"
}
variable "admin_username" {
description = "Administrator user name for mysql"
default = "hashicorp"
}
variable "height" {
default = "400"
description = "Image height in pixels."
}
variable "width" {
default = "600"
description = "Image width in pixels."
}
variable "placeholder" {
default = "placekitten.com"
description = "Image-as-a-service URL. Some other fun ones to try are fillmurray.com, placecage.com, placebeard.it, loremflickr.com, baconmockup.com, placeimg.com, placebear.com, placeskull.com, stevensegallery.com, placedog.net"
}