Skip to content

Commit

Permalink
update to push images to Shared Services to use as base images for Hy…
Browse files Browse the repository at this point in the history
…droVIS
  • Loading branch information
DrixTabligan-NOAA committed Sep 9, 2024
1 parent 121ecab commit 9318d4a
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 125 deletions.
198 changes: 91 additions & 107 deletions Core/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,12 @@ resource "aws_imagebuilder_image_recipe" "arcgisenterprise_recipe" {
resource "aws_imagebuilder_distribution_configuration" "arcgisenterprise-distribution" {
name = "arcgisenterprise-${local.arcgisVersionName}-distribution"

dynamic "distribution" {
for_each = local.destination_aws_regions
content {
region = distribution.value
ami_distribution_configuration {
name = "arcgisenterprise-${local.arcgisVersionName}-{{ imagebuilder:buildDate }}"
target_account_ids = var.ami_sharing_account_ids
ami_tags = merge(data.aws_default_tags.default.tags, { Name = "arcgisenterprise-${local.arcgisVersionName}-distribution" }, local.shared_tags)
}
distribution {
region = "us-east-1"
ami_distribution_configuration {
name = "arcgisenterprise-${local.arcgisVersionName}-{{ imagebuilder:buildDate }}"
target_account_ids = ["226711853580"]
ami_tags = merge(data.aws_default_tags.default.tags, { Name = "arcgisenterprise-${local.arcgisVersionName}-distribution" }, local.shared_tags)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,12 @@ resource "aws_imagebuilder_image_recipe" "arcgisserver_recipe" {
resource "aws_imagebuilder_distribution_configuration" "arcgisserver-distribution" {
name = "arcgisserver-${local.arcgisVersionName}-distribution"

dynamic "distribution" {
for_each = local.destination_aws_regions
content {
region = distribution.value
ami_distribution_configuration {
name = "arcgisserver-${local.arcgisVersionName}-{{ imagebuilder:buildDate }}"
target_account_ids = var.ami_sharing_account_ids
ami_tags = merge(data.aws_default_tags.default.tags, { Name = "arcgisserver-${local.arcgisVersionName}-distribution" }, local.shared_tags)
}
distribution {
region = "us-east-1"
ami_distribution_configuration {
name = "arcgisserver-${local.arcgisVersionName}-{{ imagebuilder:buildDate }}"
target_account_ids = ["226711853580"]
ami_tags = merge(data.aws_default_tags.default.tags, { Name = "arcgisserver-${local.arcgisVersionName}-distribution" }, local.shared_tags)
}
}
}
Expand Down

0 comments on commit 9318d4a

Please sign in to comment.