From 4660281bd5e2b9c7580dc81e8a45176ceaca6d14 Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Sat, 26 Dec 2020 14:08:53 +0100 Subject: [PATCH] state manipulation --- state-manipulation/.terraform.lock.hcl | 9 +++++++++ state-manipulation/provider.tf | 4 ++++ state-manipulation/ssm.tf | 5 +++++ state-manipulation/vars.tf | 3 +++ 4 files changed, 21 insertions(+) create mode 100755 state-manipulation/.terraform.lock.hcl create mode 100644 state-manipulation/provider.tf create mode 100644 state-manipulation/ssm.tf create mode 100644 state-manipulation/vars.tf diff --git a/state-manipulation/.terraform.lock.hcl b/state-manipulation/.terraform.lock.hcl new file mode 100755 index 0000000..92b03a9 --- /dev/null +++ b/state-manipulation/.terraform.lock.hcl @@ -0,0 +1,9 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "3.20.0" + hashes = [ + "h1:Wk7JYiEIslHQorVPWnofRNYUAjyro6IehY/d/Yfmbr8=", + ] +} diff --git a/state-manipulation/provider.tf b/state-manipulation/provider.tf new file mode 100644 index 0000000..375d9cd --- /dev/null +++ b/state-manipulation/provider.tf @@ -0,0 +1,4 @@ +provider "aws" { + region = var.AWS_REGION +} + diff --git a/state-manipulation/ssm.tf b/state-manipulation/ssm.tf new file mode 100644 index 0000000..01609ff --- /dev/null +++ b/state-manipulation/ssm.tf @@ -0,0 +1,5 @@ +resource "aws_ssm_parameter" "myparameter" { + name = "/myapp/myparameter" + type = "String" + value = "myvalue" +} diff --git a/state-manipulation/vars.tf b/state-manipulation/vars.tf new file mode 100644 index 0000000..7c29d8c --- /dev/null +++ b/state-manipulation/vars.tf @@ -0,0 +1,3 @@ +variable "AWS_REGION" { + default = "eu-west-1" +}