{ "$schema": "./aws-deploy-recipe-schema.json", "Id": "PushContainerImageEcr", "Version": "1.0.1", "Name": "Container Image to Amazon Elastic Container Registry (ECR)", "DeploymentType": "ElasticContainerRegistryImage", "DeploymentBundle": "Container", "Description": "This .NET application will be built using an existing Dockerfile. The Docker container image will then be pushed to Amazon ECR, a fully managed container registry.", "ShortDescription": "Pushes container image to a fully managed container registry.", "TargetService": "Amazon Elastic Container Service", "TargetPlatform": "Linux", "RecipePriority": 0, "RecommendationRules": [ { "Tests": [ { "Type": "FileExists", "Condition": { "FileName": "Dockerfile" } } ], "Effect": { "Pass": { "Include": true }, "Fail": { "Include": false } } } ], "Validators": [ { "ValidatorType": "ValidDockerfilePath" } ], "Categories": [ { "Id": "General", "DisplayName": "General", "Order": 10 } ], "OptionSettings": [ { "Id": "ImageTag", "Name": "Image Tag", "Category": "General", "Description": "This tag will be associated to the container images which are pushed to Amazon Elastic Container Registry.", "Type": "String", "DefaultValue": "{DefaultECRImageTag}", "AdvancedSetting": false, "Updatable": true, "Validators": [ { "ValidatorType": "Regex", "Configuration": { "Regex": "^[a-zA-Z0-9][a-zA-Z0-9.\\-_]{0,127}$", "ValidationFailedMessage": "Invalid image tag. The image tag can only contain uppercase and lowercase letters, digits, dashes, period and underscore. It may contain a maximum of 128 characters and cannot start with a special character." } } ] } ] }