Skip to content

Commit

Permalink
Pass profile to the proxy command.
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Jan 20, 2021
1 parent 0c737b5 commit 96133ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ variable "allowed_cidr_blocks" {
locals {
name = "${var.env}-bastion"
proxycommand = <<-EOT
ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
ProxyCommand sh -c "aws --profile=${var.aws_profile} ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
EOT
ssh_config = concat([
"# SSH over Session Manager",
Expand Down

0 comments on commit 96133ff

Please sign in to comment.