Skip to content

Feature request: Allow SAM to push container images to repository specified in template #9208

Description

@KylePeterDavies

Describe your idea/feature/enhancement

I would like to be able to create a Elastic Container Repository in my SAM template.yaml and be able to use it to push Container Images using the Metadata for AWS::Serverless::Function

Proposal

StartMachineRepository:
  Type: AWS::ECR::Repository
  Properties:
    RepositoryName: discord/start_function
StartMachineLambda:
  Type: AWS::Serverless::Function
  Properties:
    PackageType: Image
    Architectures:
      - arm64
  Metadata:
    Dockerfile: functions/start_machine/Dockerfile.lambda
    DockerContext: .
    DockerTag: latest 
    DockerRepository:  !Sub "${StartMachineRepository.RepositoryUri}"

Additional Details

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.type/featureFeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions