Skip to content

Commit

Permalink
Merge branch 'main' into place-index-add-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jul 31, 2024
2 parents 252d7cc + c185194 commit 7a63834
Show file tree
Hide file tree
Showing 92 changed files with 6,672 additions and 2,334 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,9 @@
"TrafficType": "ALL"
}
},
"ECSCluster7D463CD4": {
"Type": "AWS::ECS::Cluster"
},
"FlowLogsAllFormatCWIAMRoleAF92546B": {
"Type": "AWS::IAM::Role",
"Properties": {
Expand Down Expand Up @@ -618,7 +621,7 @@
]
},
"LogDestinationType": "cloud-watch-logs",
"LogFormat": "${version} ${account-id} ${interface-id} ${srcaddr} ${dstaddr} ${srcport} ${dstport} ${protocol} ${packets} ${bytes} ${start} ${end} ${action} ${log-status} ${vpc-id} ${subnet-id} ${instance-id} ${tcp-flags} ${type} ${pkt-srcaddr} ${pkt-dstaddr} ${region} ${az-id} ${sublocation-type} ${sublocation-id} ${pkt-src-aws-service} ${pkt-dst-aws-service} ${flow-direction} ${traffic-path}",
"LogFormat": "${version} ${account-id} ${interface-id} ${srcaddr} ${dstaddr} ${srcport} ${dstport} ${protocol} ${packets} ${bytes} ${start} ${end} ${action} ${log-status} ${vpc-id} ${subnet-id} ${instance-id} ${tcp-flags} ${type} ${pkt-srcaddr} ${pkt-dstaddr} ${region} ${az-id} ${sublocation-type} ${sublocation-id} ${pkt-src-aws-service} ${pkt-dst-aws-service} ${flow-direction} ${traffic-path} ${ecs-cluster-arn} ${ecs-cluster-name} ${ecs-container-instance-arn} ${ecs-container-instance-id} ${ecs-container-id} ${ecs-second-container-id} ${ecs-service-name} ${ecs-task-definition-arn} ${ecs-task-arn} ${ecs-task-id}",
"LogGroupName": {
"Ref": "FlowLogsAllFormatCWLogGroup3DAB6837"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Bucket } from 'aws-cdk-lib/aws-s3';
import { Cluster } from 'aws-cdk-lib/aws-ecs';
import { App, Stack, StackProps, RemovalPolicy } from 'aws-cdk-lib';
import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import { FlowLog, FlowLogDestination, FlowLogResourceType, Vpc, LogFormat } from 'aws-cdk-lib/aws-ec2';
Expand All @@ -19,6 +20,9 @@ class TestStack extends Stack {
LogFormat.SRC_PORT,
],
});

new Cluster(this, 'ECSCluster', { vpc });

new FlowLog(this, 'FlowLogsAllFormatCW', {
resourceType: FlowLogResourceType.fromVpc(vpc),
logFormat: [
Expand Down Expand Up @@ -51,6 +55,16 @@ class TestStack extends Stack {
LogFormat.PKT_DST_AWS_SERVICE,
LogFormat.FLOW_DIRECTION,
LogFormat.TRAFFIC_PATH,
LogFormat.ECS_CLUSTER_ARN,
LogFormat.ECS_CLUSTER_NAME,
LogFormat.ECS_CONTAINER_INSTANCE_ARN,
LogFormat.ECS_CONTAINER_INSTANCE_ID,
LogFormat.ECS_CONTAINER_ID,
LogFormat.ECS_SECOND_CONTAINER_ID,
LogFormat.ECS_SERVICE_NAME,
LogFormat.ECS_TASK_DEFINITION_ARN,
LogFormat.ECS_TASK_ARN,
LogFormat.ECS_TASK_ID,
],
});

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"Resources": {
"TaskDefTaskRole1EDB4A67": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "ecs-tasks.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"TaskDef54694570": {
"Type": "AWS::ECS::TaskDefinition",
"Properties": {
"ContainerDefinitions": [
{
"Essential": true,
"Image": "amazon/amazon-ecs-sample",
"Name": "SampleContainer",
"PortMappings": [
{
"ContainerPort": 80,
"HostPort": 80,
"Protocol": "tcp"
}
]
}
],
"Cpu": "256",
"Family": "awsecsfargatetaskdefTaskDef69F258AC",
"Memory": "512",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE"
],
"TaskRoleArn": {
"Fn::GetAtt": [
"TaskDefTaskRole1EDB4A67",
"Arn"
]
}
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7a63834

Please sign in to comment.