-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add ecr login #36
Changes from 24 commits
472fc2b
9e9e482
ff9f676
e884919
d85232f
337aaf4
d2ff61e
b4fb848
be36045
a9244a5
d67681d
f934cdb
07d30bf
6aade8f
f0016e3
9510d9a
03ba034
19f6778
2986ec6
2fcd39a
2837db7
d9f9a9f
6643881
1b27ab0
1e0a451
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ data "aws_eks_cluster" "this" { | |
name = local.cluster_id | ||
} | ||
|
||
# Equivalent of aws ecr get-login | ||
data "aws_ecrpublic_authorization_token" "token" {} | ||
|
||
locals { | ||
# this makes downstream resources wait for data plane to be ready | ||
cluster_id = time_sleep.dataplane.triggers["cluster_id"] | ||
|
@@ -52,12 +55,14 @@ module "api_gatewayv2" { | |
|
||
helm_config = merge( | ||
{ | ||
name = local.api_gatewayv2_name | ||
chart = "apigatewayv2-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.4" | ||
namespace = local.api_gatewayv2_name | ||
description = "ACK API Gateway Controller v2 Helm chart deployment configuration" | ||
name = local.api_gatewayv2_name | ||
chart = "apigatewayv2-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.4" | ||
namespace = local.api_gatewayv2_name | ||
repository_username = data.aws_ecrpublic_authorization_token.token.user_name | ||
repository_password = data.aws_ecrpublic_authorization_token.token.password | ||
Comment on lines
+63
to
+64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. repalce the data source values with |
||
description = "ACK API Gateway Controller v2 Helm chart deployment configuration" | ||
values = [ | ||
# shortens pod name from `ack-api-gatewayv2-apigatewayv2-chart-xxxxxxxxxxxxx` to `ack-api-gatewayv2-xxxxxxxxxxxxx` | ||
<<-EOT | ||
|
@@ -126,12 +131,14 @@ module "dynamodb" { | |
|
||
helm_config = merge( | ||
{ | ||
name = local.dynamodb_name | ||
chart = "dynamodb-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0-stable" | ||
namespace = local.dynamodb_name | ||
description = "ACK DynamoDB Controller v2 Helm chart deployment configuration" | ||
name = local.dynamodb_name | ||
chart = "dynamodb-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0-stable" | ||
namespace = local.dynamodb_name | ||
repository_username = data.aws_ecrpublic_authorization_token.token.user_name | ||
repository_password = data.aws_ecrpublic_authorization_token.token.password | ||
Comment on lines
+139
to
+140
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above comment |
||
description = "ACK DynamoDB Controller v2 Helm chart deployment configuration" | ||
values = [ | ||
# shortens pod name from `ack-dynamodb-dynamodb-chart-xxxxxxxxxxxxx` to `ack-dynamodb-xxxxxxxxxxxxx` | ||
<<-EOT | ||
|
@@ -191,12 +198,14 @@ module "s3" { | |
|
||
helm_config = merge( | ||
{ | ||
name = local.s3_name | ||
chart = "s3-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.5" | ||
namespace = local.s3_name | ||
description = "ACK S3 Controller v2 Helm chart deployment configuration" | ||
name = local.s3_name | ||
chart = "s3-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.5" | ||
namespace = local.s3_name | ||
repository_username = data.aws_ecrpublic_authorization_token.token.user_name | ||
repository_password = data.aws_ecrpublic_authorization_token.token.password | ||
Comment on lines
+206
to
+207
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above comment |
||
description = "ACK S3 Controller v2 Helm chart deployment configuration" | ||
values = [ | ||
# shortens pod name from `ack-s3-s3-chart-xxxxxxxxxxxxx` to `ack-s3-xxxxxxxxxxxxx` | ||
<<-EOT | ||
|
@@ -256,13 +265,15 @@ module "rds" { | |
|
||
helm_config = merge( | ||
{ | ||
name = local.rds_name | ||
chart = "rds-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.1" | ||
namespace = local.rds_name | ||
create_namespace = true | ||
description = "ACK RDS Controller v2 Helm chart deployment configuration" | ||
name = local.rds_name | ||
chart = "rds-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.1" | ||
namespace = local.rds_name | ||
repository_username = data.aws_ecrpublic_authorization_token.token.user_name | ||
repository_password = data.aws_ecrpublic_authorization_token.token.password | ||
Comment on lines
+273
to
+274
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above comment |
||
create_namespace = true | ||
description = "ACK RDS Controller v2 Helm chart deployment configuration" | ||
values = [ | ||
# shortens pod name from `ack-rds-rds-chart-xxxxxxxxxxxxx` to `ack-rds-xxxxxxxxxxxxx` | ||
<<-EOT | ||
|
@@ -322,13 +333,15 @@ module "amp" { | |
|
||
helm_config = merge( | ||
{ | ||
name = local.amp_name | ||
chart = "prometheusservice-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.1" | ||
namespace = local.amp_name | ||
create_namespace = true | ||
description = "ACK amp Controller v2 Helm chart deployment configuration" | ||
name = local.amp_name | ||
chart = "prometheusservice-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0.1.1" | ||
namespace = local.amp_name | ||
repository_username = data.aws_ecrpublic_authorization_token.token.user_name | ||
repository_password = data.aws_ecrpublic_authorization_token.token.password | ||
Comment on lines
+341
to
+342
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above comment |
||
create_namespace = true | ||
description = "ACK amp Controller v2 Helm chart deployment configuration" | ||
values = [ | ||
# shortens pod name from `ack-amp-amp-chart-xxxxxxxxxxxxx` to `ack-amp-xxxxxxxxxxxxx` | ||
<<-EOT | ||
|
@@ -388,12 +401,14 @@ module "emrcontainers" { | |
|
||
helm_config = merge( | ||
{ | ||
name = local.emr_name | ||
chart = "emrcontainers-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0-stable" | ||
namespace = local.emr_name | ||
description = "Helm Charts for the emrcontainers controller for AWS Controllers for Kubernetes (ACK)" | ||
name = local.emr_name | ||
chart = "emrcontainers-chart" | ||
repository = "oci://public.ecr.aws/aws-controllers-k8s" | ||
version = "v0-stable" | ||
namespace = local.emr_name | ||
repository_username = data.aws_ecrpublic_authorization_token.token.user_name | ||
repository_password = data.aws_ecrpublic_authorization_token.token.password | ||
Comment on lines
+409
to
+410
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above comment |
||
description = "Helm Charts for the emrcontainers controller for AWS Controllers for Kubernetes (ACK)" | ||
values = [ | ||
# shortens pod name from `ack-emrcontainers-emrcontainers-chart-xxxxxxxxxxxxx` to `ack-emrcontainers-xxxxxxxxxxxxx` | ||
<<-EOT | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this data source