From c035ce9b5426ff8f6a7b2420f810fb65b2c2cf34 Mon Sep 17 00:00:00 2001 From: Erik Stambaugh Date: Sun, 2 Jan 2022 08:25:58 -0800 Subject: [PATCH] Add security group open to current public IP. Fix problem with mariadb. --- nextcloud.tf | 48 ++++++++++++++--------- roles/nextcloud/files/docker-compose.yaml | 3 ++ roles/nextcloud/tasks/main.yaml | 22 +++++++++++ 3 files changed, 55 insertions(+), 18 deletions(-) diff --git a/nextcloud.tf b/nextcloud.tf index 14036b5..863621b 100644 --- a/nextcloud.tf +++ b/nextcloud.tf @@ -5,11 +5,6 @@ provider "aws" { resource "random_pet" "name" {} -#resource "aws_s3_bucket" "bucket" { -# bucket = "nextcloud-${random_pet.name.id}" -# acl = "private" -#} - # https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/latest module "s3_bucket" { source = "terraform-aws-modules/s3-bucket/aws" @@ -37,11 +32,6 @@ module "vpc" { enable_nat_gateway = false enable_vpn_gateway = false - -# tags = { -# Terraform = "true" -# Environment = "dev" -# } } resource "tls_private_key" "n" { @@ -66,20 +56,42 @@ resource "aws_instance" "nextcloud" { key_name = aws_key_pair.n.key_name iam_instance_profile = aws_iam_instance_profile.nextcloud.name -# user_data = <