DirectorySecurity AdvisoriesPricing
Sign in
Directory
aws-sns-controller logo

aws-sns-controller

packaged by Chainguard

Last changed
Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for aws-sns-controller

SNS controller is an AWS Controllers for Kubernetes (ACK) service controller for Amazon Simple Notification Service (SNS).

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/aws-sns-controller:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

Chainguard's aws-sns-controller image is a minimal, Wolfi-based container image for the AWS Controllers for Kubernetes (ACK) service controller managing Amazon Simple Notification Service (SNS) resources. It is comparable to the sns-controller image published by AWS in functionality: the controller binary is available at /bin/controller (the path the upstream image and Helm chart use) and the image runs as the nonroot user 1000.

Getting Started

The controller is deployed with the official ACK (AWS Controllers for Kubernetes) Helm chart, oci://public.ecr.aws/aws-controllers-k8s/sns-chart, published in the ACK registry within the Amazon ECR Public Gallery. Installing it creates the controller Deployment, the custom resource definitions, the service account, and the RBAC it needs.

The chart is released in lockstep with the controller, so each chart version deploys the controller of the same version. List the versions available with:

crane ls public.ecr.aws/aws-controllers-k8s/sns-chart

The controller exits at startup until it has AWS credentials, so give it an IAM identity before installing. On Amazon EKS, annotate the chart's service account with an IAM role that can manage SNS, as described in the ACK guide to configuring IAM permissions. Outside EKS, set aws.credentials.secretName to a Secret holding an AWS shared credentials file instead. Create a values.yaml pointing the chart at this image and that role, replacing AWS_ACCOUNT_ID and IAM_ROLE_NAME with your own:

cat > values.yaml <<EOF
image:
  repository: cgr.dev/ORGANIZATION/aws-sns-controller
  tag: latest
aws:
  region: us-east-1
serviceAccount:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::AWS_ACCOUNT_ID:role/IAM_ROLE_NAME
EOF

Then install the chart:

aws ecr-public get-login-password --region us-east-1 | helm registry login --username AWS --password-stdin public.ecr.aws

helm install ack-sns-controller \
  oci://public.ecr.aws/aws-controllers-k8s/sns-chart \
  --namespace ack-system --create-namespace \
  --values values.yaml --wait

Confirm the controller came up and registered its custom resource definitions:

kubectl rollout status deployment -n ack-system -l app.kubernetes.io/name=sns-chart
kubectl get crd | grep sns.services.k8s.aws

Once running, the controller reconciles SNS custom resources. The chart installs CRDs for four SNS kinds: Topic, Subscription, PlatformApplication, and PlatformEndpoint, alongside the two shared ACK kinds FieldExport and IAMRoleSelector. For example, to create a topic:

kubectl apply -f - <<EOF
apiVersion: sns.services.k8s.aws/v1alpha1
kind: Topic
metadata:
  name: my-topic
  namespace: ack-system
spec:
  name: my-topic
  displayName: Managed by ACK
EOF

The controller writes the result back onto the resource, so a successful reconcile is visible in its status:

kubectl get topic my-topic -n ack-system \
  -o jsonpath='{.status.ackResourceMetadata.arn}'

A Subscription can refer to the topic by its Kubernetes name through topicRef, and the controller resolves it to the topic's ARN. This subscribes an existing SQS queue, whose ARN replaces the placeholder below:

kubectl apply -f - <<EOF
apiVersion: sns.services.k8s.aws/v1alpha1
kind: Subscription
metadata:
  name: my-topic-to-queue
  namespace: ack-system
spec:
  topicRef:
    from:
      name: my-topic
  protocol: sqs
  endpoint: arn:aws:sqs:us-east-1:111122223333:my-queue
EOF

Configuration

The chart's deletionPolicy decides what happens to the AWS resource when its custom resource is deleted. It defaults to delete, which removes the SNS topic, subscription, or platform application along with the Kubernetes object. A PlatformEndpoint is the exception: the controller does not delete endpoints, so deleting the custom resource leaves the endpoint in SNS. Set it to retain when the Kubernetes objects are managed by a pipeline that may recreate or prune them, so that deleting a manifest cannot remove a topic that other systems still publish to:

cat > values.yaml <<EOF
image:
  repository: cgr.dev/ORGANIZATION/aws-sns-controller
  tag: latest
aws:
  region: us-east-1
deletionPolicy: retain
leaderElection:
  enabled: true
  namespace: ack-system
serviceAccount:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::AWS_ACCOUNT_ID:role/IAM_ROLE_NAME
EOF

Apply it with the same chart. helm upgrade --install both creates the release and updates an existing one, so the same command works whether or not the controller is already deployed:

helm upgrade --install ack-sns-controller \
  oci://public.ecr.aws/aws-controllers-k8s/sns-chart \
  --namespace ack-system --create-namespace \
  --values values.yaml --wait

Under retain the controller clears its finalizer and leaves the AWS resource in place. leaderElection is worth enabling alongside it whenever the Deployment runs more than one replica, so only one controller reconciles at a time.

To see every value the chart accepts, including the resource-specific reconcile settings:

helm show values oci://public.ecr.aws/aws-controllers-k8s/sns-chart

Documentation and Resources

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • MIT

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

Chainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.

SLSA compliance at Chainguard

This image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.

PCI DSS at Chainguard

A FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.


Related images
aws-sns-controller-fips logoFIPS

aws-sns-controller-fips


Category
Application

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.