Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #218 from mvladev/remove-aws-instance-profile
Browse files Browse the repository at this point in the history
Remove AWS instance profile from bastion nodes
  • Loading branch information
DockToFuture authored Jul 13, 2020
2 parents 2982181 + 6389d8d commit 47775dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/ssh_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (a *AwsInstanceAttribute) createBastionHostInstance() {
}

// create bastion host
arguments = "aws " + fmt.Sprintf("ec2 run-instances --iam-instance-profile Name=%s --image-id %s --count 1 --instance-type %s --key-name %s --security-group-ids %s --subnet-id %s --associate-public-ip-address --user-data file://%s --tag-specifications ResourceType=instance,Tags=[{Key=Name,Value=%s},{Key=component,Value=gardenctl}] ResourceType=volume,Tags=[{Key=component,Value=gardenctl}]", a.BastionInstanceName, a.ImageID, instanceType, a.KeyName, a.BastionSecurityGroupID, a.SubnetID, tmpfile.Name(), a.BastionInstanceName)
arguments = "aws " + fmt.Sprintf("ec2 run-instances --image-id %s --count 1 --instance-type %s --key-name %s --security-group-ids %s --subnet-id %s --associate-public-ip-address --user-data file://%s --tag-specifications ResourceType=instance,Tags=[{Key=Name,Value=%s},{Key=component,Value=gardenctl}] ResourceType=volume,Tags=[{Key=component,Value=gardenctl}]", a.ImageID, instanceType, a.KeyName, a.BastionSecurityGroupID, a.SubnetID, tmpfile.Name(), a.BastionInstanceName)
captured = capture()
operate("aws", arguments)
capturedOutput, err = captured()
Expand Down

0 comments on commit 47775dd

Please sign in to comment.