Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shmileee committed May 14, 2022
1 parent 8a9db30 commit 33b7648
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ override.tf.json

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
.terraform.lock.hcl
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# terraform-aws-cloudflared

[![latest release](https://img.shields.io/github/v/release/shmileee/terraform-module-cloudflared?style=flat-square)](https://github.com/shmileee/terraform-module-cloudflared/releases/latest)
[![build status](https://img.shields.io/github/workflow/status/shmileee/terraform-module-cloudflared/workflow?label=build&logo=github&style=flat-square)](https://github.com/shmileee/terraform-module-cloudflared/actions?query=workflow%3Atest)
[![latest release](https://img.shields.io/github/v/release/shmileee/terraform-aws-cloudflared?style=flat-square)](https://github.com/shmileee/terraform-aws-cloudflared/releases/latest)
[![build status](https://img.shields.io/github/workflow/status/shmileee/terraform-aws-cloudflared/workflow?label=build&logo=github&style=flat-square)](https://github.com/shmileee/terraform-aws-cloudflared/actions?query=workflow%3Atest)

Terraform module which creates Cloudflare Zero Trust tunnel on AWS running as a
ECS container:
Expand Down
26 changes: 11 additions & 15 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
# BASIC TERRAFORM CONTENT EXAMPLE
# ---------------------------------------------------------------------------------------------------------------------

module "ecr" {
source = "cloudposse/ecr/aws"
version = "0.34.0"

image_tag_mutability = "MUTABLE"
namespace = "example"
image_names = [
"cloudflared-tunnel",
]
module "vpc" {
source = "terraform-aws-modules/vpc/aws"

name = "my-vpc"
cidr = "10.0.0.0/16"

azs = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
}

module "tunnel" {
Expand All @@ -19,15 +18,12 @@ module "tunnel" {
name_prefix = "my-tunnel"
environment = "prod"

ecr_repo_arns = [module.ecr.repository_arn_map["cloudflared-tunnel"]]
docker_image = "${module.ecr.repository_url_map["cloudflared-tunnel"]}:latest"

tunnel_url = "https://my.private.service.endpoint.com"
tunnel_hostname = "my.internal.company.net"

s3_bucket_arn = module.packages.artifacts_bucket_arn
s3_bucket_arn = "arn:aws:s3:::my-bucket"
s3_cert_path = "s3://my-bucket/cert.pem"

vpc_id = local.vpc_id
subnet_ids = local.public_subnets
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.public_subnets
}
3 changes: 0 additions & 3 deletions examples/simple/outputs.tf

This file was deleted.

3 changes: 0 additions & 3 deletions examples/simple/variables.tf

This file was deleted.

0 comments on commit 33b7648

Please sign in to comment.