Skip to content

Instantly share code, notes, and snippets.

View a1k0u's full-sized avatar

Alexey Kosenko a1k0u

  • Aviasales
  • Saint Petersburg
View GitHub Profile
@a1k0u
a1k0u / add_tags_to_repository_resource.py
Created April 1, 2024 18:20
Adding tags to an Amazon ECR repository resource. If the tag from the list does not exist, it will be added to the tag set. If the tag has a different value, it will be changed in the repository tag set.
import boto3
TAGS_TO_ADD = [
{
"Key": "team",
"Value": "DevOps"
},
]
client = boto3.client("ecr")