Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Connect Jira to the code used for the POC for TFC #491

Closed
wants to merge 4 commits into from
Closed
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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ override.tf.json
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
*tfplan*

25 changes: 25 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: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

provider "aws" {
region = var.region
access_key = var.AWS_ACCESS_KEY_ID
secret_key = var.AWS_SECRET_ACCESS_KEY
}

data "aws_ami" "ubuntu" {
Expand Down
18 changes: 18 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ variable "instance_name" {
default = "Provisioned by Terraform"
}

// DO NOT put your AWS credentials in code
//DO NOT run AWS CLI locally
//DO NOT RUN TERRAFORM LOCALLY
//Because credentials are stored in plain text locally
//And anyone with access to your comnmputer can have your level of access
//to company resources.

variable "AWS_ACCESS_KEY_ID" {
description = "Temp AWS creds"
default = ""
}

variable "AWS_SECRET_ACCESS_KEY" {
description = "Temp AWS creds"
default = ""
}

//Keep the values in code stored blank
13 changes: 7 additions & 6 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.28.0"
version = ">=5.17.0"
}

random = {
source = "hashicorp/random"
version = "3.0.0"
}
# random = {
# source = "hashicorp/random"
# version = "3.0.0"
# }
}

required_version = ">= 0.14.0"
required_version = ">= 1.5.7"
}