Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gamelift): add BuildFleet L2 Construct for GameLift #22735

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update integ test based on latest integ-runner dependency build
  • Loading branch information
stevehouel committed Nov 1, 2022
commit 0f653a28c6085fce7c2dc819fe532c08ac624334
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-gamelift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@
"docs-public-apis:@aws-cdk/aws-gamelift.OperatingSystem.AMAZON_LINUX",
"docs-public-apis:@aws-cdk/aws-gamelift.OperatingSystem.AMAZON_LINUX_2",
"docs-public-apis:@aws-cdk/aws-gamelift.OperatingSystem.WINDOWS_2012",
"docs-public-apis:@aws-cdk/aws-gamelift.FleetType.SPOT",
"docs-public-apis:@aws-cdk/aws-gamelift.FleetType.ON_DEMAND",
"docs-public-apis:@aws-cdk/aws-gamelift.Protocol.TCP",
"docs-public-apis:@aws-cdk/aws-gamelift.Protocol.UDP"
]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
}
}
},
"d369dc5e9ca07d23c2c72c8b6fd1b6cbeb8fb758f513faefc68dcff34f256c15": {
"89ae8fa68812cad7f5b56023ac4cb888fc00d47d9cc9a69e3f71ec2bf91e5efe": {
"source": {
"path": "aws-gamelift-build-fleet.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "d369dc5e9ca07d23c2c72c8b6fd1b6cbeb8fb758f513faefc68dcff34f256c15.json",
"objectKey": "89ae8fa68812cad7f5b56023ac4cb888fc00d47d9cc9a69e3f71ec2bf91e5efe.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"Resources": {
"BuildServiceRole1F57E904": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "gamelift.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"BuildServiceRoleDefaultPolicyCB7101C6": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": [
"s3:GetBucket*",
"s3:GetObject*",
"s3:List*"
],
"Effect": "Allow",
"Resource": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":s3:::",
{
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"/*"
]
]
},
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":s3:::",
{
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
}
]
]
}
]
}
],
"Version": "2012-10-17"
},
"PolicyName": "BuildServiceRoleDefaultPolicyCB7101C6",
"Roles": [
{
"Ref": "BuildServiceRole1F57E904"
}
]
}
},
"Build45A36621": {
"Type": "AWS::GameLift::Build",
"Properties": {
"StorageLocation": {
"Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"Key": "6019bfc8ab05a24b0ae9b5d8f4585cbfc7d1c30a23286d0b25ce7066a368a5d7.zip",
"RoleArn": {
"Fn::GetAtt": [
"BuildServiceRole1F57E904",
"Arn"
]
}
}
}
},
"BuildFleetServiceRole32D49FB4": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "gamelift.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"BuildFleet027ED403": {
"Type": "AWS::GameLift::Fleet",
"Properties": {
"BuildId": {
"Ref": "Build45A36621"
},
"CertificateConfiguration": {
"CertificateType": "DISABLED"
},
"EC2InboundPermissions": [
{
"FromPort": 1026,
"IpRange": "0.0.0.0/0",
"Protocol": "TCP",
"ToPort": 60000
}
],
"EC2InstanceType": "c4.large",
"FleetType": "ON_DEMAND",
"InstanceRoleARN": {
"Fn::GetAtt": [
"BuildFleetServiceRole32D49FB4",
"Arn"
]
},
"MaxSize": 1,
"MinSize": 0,
"NewGameSessionProtectionPolicy": "NO_PROTECTION",
"RuntimeConfiguration": {
"ServerProcesses": [
{
"ConcurrentExecutions": 10,
"LaunchPath": "test-launch-path"
}
]
}
}
}
},
"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."
}
]
}
}
}
Loading