Skip to content

Conversation

@valerena
Copy link
Contributor

@valerena valerena commented Dec 12, 2025

Issue #, if available

AWS::Serverless::CapacityProvider doesn't support correctly the field KmsKeyArn.

Description of changes

  • Replace the wrong version of this that was added in the past, that tried to use KMSKeyArn instead of KmsKeyArn.

I also changed a few other minor things on the tests template, so they were correct according to cfn-lint. Capacity Providers are not available in other partitions, so we continue ignoring the test JSON files in those other partitions.

Description of how you validated changes

  • make pr
  • I did a local transform and then deployed successfully (actual values modified, but this template).
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Full CapacityProvider configuration test

Resources:
  CapacityProvider:
    Type: AWS::Serverless::CapacityProvider
    Properties:
      CapacityProviderName: customized-capacity-provider
      VpcConfig:
        SecurityGroupIds:
        - sg-32a88741
        SubnetIds:
        - subnet-954883c1
      KmsKeyArn: arn:aws:kms:us-east-1:123456789012:key/9b2d4ac3-883a-67a9-b5e2-1bf3e6add71a

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@valerena valerena requested a review from a team as a code owner December 12, 2025 23:05
@valerena valerena merged commit a45a711 into aws:develop Dec 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants