Skip to content

feat: Add aws_ecr_registry table#2750

Merged
cbruno10 merged 1 commit into
turbot:release/v1.31.0from
StateFarmIns:feat/issue-2690-aws-ecr-registry-table
Jun 1, 2026
Merged

feat: Add aws_ecr_registry table#2750
cbruno10 merged 1 commit into
turbot:release/v1.31.0from
StateFarmIns:feat/issue-2690-aws-ecr-registry-table

Conversation

@chammock

Copy link
Copy Markdown
Contributor

Integration test logs

Logs
$ tint test aws_ecr_registry

SETUP: tests/aws_ecr_registry []

PRETEST: tests/aws_ecr_registry

TEST: tests/aws_ecr_registry
Running terraform
data.aws_region.alternate: Reading...
data.aws_region.alternate: Read complete after 0s [id=us-east-2]
data.aws_partition.current: Reading...
data.aws_caller_identity.current: Reading...
data.aws_region.primary: Reading...
data.aws_partition.current: Read complete after 0s [id=aws]
data.aws_region.primary: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.current: Read complete after 0s [id=000000000000]

Terraform will perform the following actions:

  # aws_ecr_registry_policy.test will be created
  + resource "aws_ecr_registry_policy" "test" { ... }

  # aws_ecr_replication_configuration.test will be created
  + resource "aws_ecr_replication_configuration" "test" { ... }

Plan: 2 to add, 0 to change, 0 to destroy.

aws_ecr_registry_policy.test: Creating...
aws_ecr_replication_configuration.test: Creating...
aws_ecr_registry_policy.test: Creation complete after 1s [id=000000000000]
aws_ecr_replication_configuration.test: Creation complete after 1s [id=000000000000]

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:
aws_account          = "000000000000"
aws_partition        = "aws"
aws_region           = "us-east-1"
aws_region_alternate = "us-east-2"
registry_id          = "000000000000"
resource_aka         = "arn:aws:ecr:us-east-1:000000000000:registry/000000000000"

Running SQL query: test-get-query.sql
✔ PASSED

Running SQL query: test-list-query.sql
✔ PASSED

Running SQL query: test-turbot-query.sql
✔ PASSED

POSTTEST: tests/aws_ecr_registry
TEARDOWN: tests/aws_ecr_registry

SUMMARY:

1/1 passed.

Example query results

Results
select
  registry_id,
  arn,
  replication_configuration -> 'Rules' -> 0 -> 'Destinations' -> 0 ->> 'Region' as destination_region,
  policy ->> 'Version' as policy_version,
  region
from aws.aws_ecr_registry
where region = 'us-east-1';
[
  {
    "arn": "arn:aws:ecr:us-east-1:000000000000:registry/000000000000",
    "destination_region": "us-east-2",
    "policy_version": "2012-10-17",
    "region": "us-east-1",
    "registry_id": "000000000000"
  }
]

@cbruno10 cbruno10 changed the base branch from main to release/v1.31.0 June 1, 2026 00:31
@cbruno10 cbruno10 merged commit 49d07e1 into turbot:release/v1.31.0 Jun 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants