-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3690 from aws/release-v1.94.0
Release 1.94.0 (to main)
- Loading branch information
Showing
11 changed files
with
514 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.93.0" | ||
__version__ = "1.94.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
tests/translator/input/function_with_provisioned_poller_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Resources: | ||
KafkaEventsFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
CodeUri: s3://sam-demo-bucket/metricsConfig.zip | ||
Handler: index.handler | ||
Runtime: nodejs16.x | ||
Events: | ||
MyMskEvent: | ||
Type: MSK | ||
Properties: | ||
StartingPosition: LATEST | ||
Stream: !Sub arn:aws:kafka:${AWS::Region}:012345678901:cluster/mycluster/6cc0432b-8618-4f44-bccc-e1fbd8fb7c4d-2 | ||
Topics: | ||
- MyDummyTestTopic | ||
ConsumerGroupId: consumergroup1 | ||
ProvisionedPollerConfig: | ||
MinimumPollers: 5 | ||
MaximumPollers: 10 | ||
MyKafkaCluster: | ||
Type: SelfManagedKafka | ||
Properties: | ||
KafkaBootstrapServers: | ||
- abc.xyz.com:9092 | ||
- 123.45.67.89:9096 | ||
Topics: | ||
- Topic1 | ||
SourceAccessConfigurations: | ||
- Type: SASL_SCRAM_512_AUTH | ||
URI: arn:aws:secretsmanager:us-west-2:123456789012:secret:my-path/my-secret-name-1a2b3c | ||
- Type: VPC_SUBNET | ||
URI: subnet:subnet-12345 | ||
- Type: VPC_SECURITY_GROUP | ||
URI: security_group:sg-67890 | ||
ConsumerGroupId: consumergroup1 | ||
StartingPosition: AT_TIMESTAMP | ||
StartingPositionTimestamp: 1672560000 | ||
ProvisionedPollerConfig: | ||
MinimumPollers: 2 | ||
MaximumPollers: 100 |
151 changes: 151 additions & 0 deletions
151
tests/translator/output/aws-cn/function_with_provisioned_poller_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
{ | ||
"Resources": { | ||
"KafkaEventsFunction": { | ||
"Properties": { | ||
"Code": { | ||
"S3Bucket": "sam-demo-bucket", | ||
"S3Key": "metricsConfig.zip" | ||
}, | ||
"Handler": "index.handler", | ||
"Role": { | ||
"Fn::GetAtt": [ | ||
"KafkaEventsFunctionRole", | ||
"Arn" | ||
] | ||
}, | ||
"Runtime": "nodejs16.x", | ||
"Tags": [ | ||
{ | ||
"Key": "lambda:createdBy", | ||
"Value": "SAM" | ||
} | ||
] | ||
}, | ||
"Type": "AWS::Lambda::Function" | ||
}, | ||
"KafkaEventsFunctionMyKafkaCluster": { | ||
"Properties": { | ||
"FunctionName": { | ||
"Ref": "KafkaEventsFunction" | ||
}, | ||
"ProvisionedPollerConfig": { | ||
"MaximumPollers": 100, | ||
"MinimumPollers": 2 | ||
}, | ||
"SelfManagedEventSource": { | ||
"Endpoints": { | ||
"KafkaBootstrapServers": [ | ||
"abc.xyz.com:9092", | ||
"123.45.67.89:9096" | ||
] | ||
} | ||
}, | ||
"SelfManagedKafkaEventSourceConfig": { | ||
"ConsumerGroupId": "consumergroup1" | ||
}, | ||
"SourceAccessConfigurations": [ | ||
{ | ||
"Type": "SASL_SCRAM_512_AUTH", | ||
"URI": "arn:aws:secretsmanager:us-west-2:123456789012:secret:my-path/my-secret-name-1a2b3c" | ||
}, | ||
{ | ||
"Type": "VPC_SUBNET", | ||
"URI": "subnet:subnet-12345" | ||
}, | ||
{ | ||
"Type": "VPC_SECURITY_GROUP", | ||
"URI": "security_group:sg-67890" | ||
} | ||
], | ||
"StartingPosition": "AT_TIMESTAMP", | ||
"StartingPositionTimestamp": 1672560000, | ||
"Topics": [ | ||
"Topic1" | ||
] | ||
}, | ||
"Type": "AWS::Lambda::EventSourceMapping" | ||
}, | ||
"KafkaEventsFunctionMyMskEvent": { | ||
"Properties": { | ||
"AmazonManagedKafkaEventSourceConfig": { | ||
"ConsumerGroupId": "consumergroup1" | ||
}, | ||
"EventSourceArn": { | ||
"Fn::Sub": "arn:aws:kafka:${AWS::Region}:012345678901:cluster/mycluster/6cc0432b-8618-4f44-bccc-e1fbd8fb7c4d-2" | ||
}, | ||
"FunctionName": { | ||
"Ref": "KafkaEventsFunction" | ||
}, | ||
"ProvisionedPollerConfig": { | ||
"MaximumPollers": 10, | ||
"MinimumPollers": 5 | ||
}, | ||
"StartingPosition": "LATEST", | ||
"Topics": [ | ||
"MyDummyTestTopic" | ||
] | ||
}, | ||
"Type": "AWS::Lambda::EventSourceMapping" | ||
}, | ||
"KafkaEventsFunctionRole": { | ||
"Properties": { | ||
"AssumeRolePolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"sts:AssumeRole" | ||
], | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"lambda.amazonaws.com" | ||
] | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"ManagedPolicyArns": [ | ||
"arn:aws-cn:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", | ||
"arn:aws-cn:iam::aws:policy/service-role/AWSLambdaMSKExecutionRole" | ||
], | ||
"Policies": [ | ||
{ | ||
"PolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"secretsmanager:GetSecretValue" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "arn:aws:secretsmanager:us-west-2:123456789012:secret:my-path/my-secret-name-1a2b3c" | ||
}, | ||
{ | ||
"Action": [ | ||
"ec2:CreateNetworkInterface", | ||
"ec2:DescribeNetworkInterfaces", | ||
"ec2:DeleteNetworkInterface", | ||
"ec2:DescribeVpcs", | ||
"ec2:DescribeSubnets", | ||
"ec2:DescribeSecurityGroups" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"PolicyName": "SelfManagedKafkaExecutionRolePolicy" | ||
} | ||
], | ||
"Tags": [ | ||
{ | ||
"Key": "lambda:createdBy", | ||
"Value": "SAM" | ||
} | ||
] | ||
}, | ||
"Type": "AWS::IAM::Role" | ||
} | ||
} | ||
} |
Oops, something went wrong.