Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianofernandeszup committed Sep 1, 2021
0 parents commit 27806c9
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# template-rds
26 changes: 26 additions & 0 deletions orange-resource-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Template SQS
description: Template SQS
inputs:
- label: 'Name:'
name: name
type: text

- label: 'Visibility Timeout:'
name: visibility_timeout
type: text

- label: 'Retetion Period:'
name: retention_period
type: text

- label: 'Bucket TF State Name:'
name: bucket_tfstate_name
type: text

- label: 'Bucket TF State Region:'
name: bucket_tfstate_region
type: text

- label: 'asdasd TF State Region:'
name: asd
type: text
13 changes: 13 additions & 0 deletions template-data/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
terraform {
backend "s3" {
bucket = "{{BUCKET_TFSTATE_NAME}}"
key = "sqs/sqs-{{NAME|unify}}.tfstate"
region = "{{BUCKET_TFSTATE_REGION}}"
}
required_providers {
aws = {
version = "~> 3.2"
source = "hashicorp/aws"
}
}
}
12 changes: 12 additions & 0 deletions template-data/sqs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module "sqs" {
source = "[email protected]:Orangestack-com/templates-domainservices-terraform-modules-org.git//eks-os-observability?ref=main"

name = var.name
visibility_timeout = var.visibility_timeout
retention_period = var.retention_period
asdasd = var.adasd

tags = {
Service = var.name
}
}
4 changes: 4 additions & 0 deletions template-data/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name={{NAME}}
visibility_timeout={{VISIBILITY_TIMEOUT}}
retention_period={{RETENTION_PERIOD}}
asdasd={{asd}}
3 changes: 3 additions & 0 deletions template-data/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "name" {type=string}
variable "visibility_timeout" {type=string}
variable "retention_period" {type=string}

0 comments on commit 27806c9

Please sign in to comment.