Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Metadata": { "Test": "test" },
"Resources": {
"VPCB9E5F0B4": {
"Type": "AWS::EC2::VPC",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ class TestStack extends cdk.Stack {
new TestStack(app, 'TestStack');

app.synth();
// linter update
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as iam from 'aws-cdk-lib/aws-iam';
// Trigger integration test update for PR linter
import * as cdk from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import { IntegTest } from '@aws-cdk/integ-tests-alpha';
Expand Down
4 changes: 3 additions & 1 deletion packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,10 +1604,12 @@ export class TableV2MultiAccountReplica extends TableBaseV2 {
let sourceRegion = sourceStack.region;

// For imported tables, extract account/region from ARN instead of stack
if (!Token.isUnresolved(props.replicaSourceTable!.tableArn)) {
try {
const arnParts = this.stack.splitArn(props.replicaSourceTable!.tableArn, ArnFormat.SLASH_RESOURCE_NAME);
if (arnParts.account) sourceAccount = arnParts.account;
if (arnParts.region) sourceRegion = arnParts.region;
} catch {
// Ignore splitArn failures on purely tokenized ARNs
}

// Validate different account (skip if token)
Expand Down
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
public static readonly ECS_TELEMETRY = new InterfaceVpcEndpointAwsService('ecs-telemetry');
public static readonly EKS = new InterfaceVpcEndpointAwsService('eks');
public static readonly EKS_AUTH = new InterfaceVpcEndpointAwsService('eks-auth');
public static readonly EKS_PROXY = new InterfaceVpcEndpointAwsService('eks-proxy');
public static readonly ELASTIC_BEANSTALK = new InterfaceVpcEndpointAwsService('elasticbeanstalk');
public static readonly ELASTIC_BEANSTALK_HEALTH = new InterfaceVpcEndpointAwsService('elasticbeanstalk-health');
public static readonly ELASTIC_DISASTER_RECOVERY = new InterfaceVpcEndpointAwsService('drs');
Expand Down
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-ec2/test/vpc-endpoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ describe('vpc endpoint', () => {
['ecr.api', InterfaceVpcEndpointAwsService.ECR],
['ecr.dkr', InterfaceVpcEndpointAwsService.ECR_DOCKER],
['eks', InterfaceVpcEndpointAwsService.EKS],
['eks-proxy', InterfaceVpcEndpointAwsService.EKS_PROXY],
['elasticache', InterfaceVpcEndpointAwsService.ELASTICACHE],
['elasticbeanstalk', InterfaceVpcEndpointAwsService.ELASTIC_BEANSTALK],
['elasticfilesystem', InterfaceVpcEndpointAwsService.ELASTIC_FILESYSTEM],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const LEGACY_POLICY_VALIDATION_FILE_PATH = 'policy-validation-report.json';
*/
export function validateTemplates(root: IConstruct, outdir: string, assembly: private_cxapi.CloudAssembly) {
if (!App.isApp(root)) return;
if (process.env.CDK_VALIDATION === 'false') return;

using _span = profileSpan('validateTemplates', { telemetry: true });
const assemblies = getAssemblies(root, assembly);
Expand Down
Loading