-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: enable ecr replication * Auto Format * fix: variable type and count * fix: small fixes * fix: readme * support dynamic configurations instead of dynamic rules * new readme * fix lint --------- Co-authored-by: cloudpossebot <[email protected]> Co-authored-by: Matt Gowie <[email protected]> Co-authored-by: Kevin Mahoney <[email protected]> Co-authored-by: Kevin Mahoney <[email protected]>
- Loading branch information
1 parent
8476a6d
commit 6570c59
Showing
7 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
provider "aws" { | ||
region = "us-east-2" | ||
} | ||
|
||
data "aws_caller_identity" "current" {} | ||
|
||
module "ecr" { | ||
source = "../../" | ||
namespace = "eg" | ||
stage = "dev" | ||
name = "app" | ||
use_fullname = false | ||
image_names = ["redis"] | ||
|
||
replication_configurations = [ | ||
{ | ||
rules = [ | ||
{ | ||
destinations = [ | ||
{ | ||
region = "us-east-1" | ||
registry_id = data.aws_caller_identity.current.account_id | ||
}, | ||
{ | ||
region = "eu-west-1" | ||
registry_id = data.aws_caller_identity.current.account_id | ||
} | ||
] | ||
repository_filters = [ | ||
{ | ||
filter = "redis" | ||
filter_type = "PREFIX_MATCH" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "repository_id_map" { | ||
value = module.ecr.repository_arn_map | ||
description = "Repository id map" | ||
} | ||
|
||
output "repository_url_map" { | ||
value = module.ecr.repository_url_map | ||
description = "Repository url map" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_version = ">= 1.3" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 4.22.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters