Skip to content
Merged
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
2 changes: 1 addition & 1 deletion deployment/migration-assistant-solution/lib/eks-infra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class EKSInfra extends Construct {
});

let subnetIds
if (props.vpcSubnetIds) {
if (props.vpcSubnetIds && props.vpcSubnetIds.length > 0) {
subnetIds = props.vpcSubnetIds
} else {
subnetIds = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,14 @@ exports[`Solutions stack Migration stack with new VPC matches snapshot 1`] = `
},
],
},
"SubnetIds": [],
"SubnetIds": [
{
"Ref": "VpcPrivateSubnet1Subnet536B997A",
},
{
"Ref": "VpcPrivateSubnet2Subnet3788AAA1",
},
],
},
"RoleArn": {
"Fn::GetAtt": [
Expand Down Expand Up @@ -1815,6 +1822,28 @@ exports[`Solutions stack Migration stack with new VPC matches snapshot 1`] = `
],
"Properties": {
"Tags": [
{
"Key": {
"Fn::Join": [
"",
[
"kubernetes.io/cluster/migration-eks-cluster-",
{
"Ref": "Stage",
},
"-",
{
"Ref": "AWS::Region",
},
],
],
},
"Value": "shared",
},
{
"Key": "kubernetes.io/role/internal-elb",
"Value": "1",
},
{
"Key": "Name",
"Value": {
Expand Down Expand Up @@ -1883,6 +1912,28 @@ exports[`Solutions stack Migration stack with new VPC matches snapshot 1`] = `
"Key": "aws-cdk:subnet-type",
"Value": "Private",
},
{
"Key": {
"Fn::Join": [
"",
[
"kubernetes.io/cluster/migration-eks-cluster-",
{
"Ref": "Stage",
},
"-",
{
"Ref": "AWS::Region",
},
],
],
},
"Value": "shared",
},
{
"Key": "kubernetes.io/role/internal-elb",
"Value": "1",
},
{
"Key": "Name",
"Value": {
Expand Down Expand Up @@ -1940,6 +1991,28 @@ exports[`Solutions stack Migration stack with new VPC matches snapshot 1`] = `
],
"Properties": {
"Tags": [
{
"Key": {
"Fn::Join": [
"",
[
"kubernetes.io/cluster/migration-eks-cluster-",
{
"Ref": "Stage",
},
"-",
{
"Ref": "AWS::Region",
},
],
],
},
"Value": "shared",
},
{
"Key": "kubernetes.io/role/internal-elb",
"Value": "1",
},
{
"Key": "Name",
"Value": {
Expand Down Expand Up @@ -2022,6 +2095,28 @@ exports[`Solutions stack Migration stack with new VPC matches snapshot 1`] = `
"Key": "aws-cdk:subnet-type",
"Value": "Private",
},
{
"Key": {
"Fn::Join": [
"",
[
"kubernetes.io/cluster/migration-eks-cluster-",
{
"Ref": "Stage",
},
"-",
{
"Ref": "AWS::Region",
},
],
],
},
"Value": "shared",
},
{
"Key": "kubernetes.io/role/internal-elb",
"Value": "1",
},
{
"Key": "Name",
"Value": {
Expand Down