Skip to content

Commit

Permalink
Fix aws secret key name in autoscaler aws target
Browse files Browse the repository at this point in the history
- aws secret key is named incorrectly in the target docs.
  It needs to match what is in the nomad-autoscaler repo
  (see link below), otherwise the autoscaler will default to AWS sdk
  behavior, which could end up using an IAM instance profile
  or other environment variables instead of what is passed into the
  autoscaler config file.

Ref: https://github.com/hashicorp/nomad-autoscaler/blob/e60fb5268d2107ab18e2be11e5d438fedc3eb2a8/plugins/builtin/target/aws-asg/plugin/plugin.go#L27
  • Loading branch information
Xopherus authored and tgross committed Feb 3, 2021
1 parent 434f4b4 commit e45a124
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/content/docs/autoscaling/plugins/target.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ below.
target "aws-asg" {
driver = "aws-asg"
config = {
aws_region = "eu-west-3"
aws_access_key_id = "AKIAIOSFODNN7EXAMPLE"
aws_secret_key_id = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
aws_region = "eu-west-3"
aws_access_key_id = "AKIAIOSFODNN7EXAMPLE"
aws_secret_access_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}
}
```
Expand All @@ -191,7 +191,7 @@ node {
- `aws_access_key_id` `(string: "")` - The AWS access key ID used to authenticate
with the AWS API.

- `aws_secret_key_id` `(string: "")` - The AWS secret key ID used to authenticate
- `aws_secret_access_key` `(string: "")` - The AWS secret key ID used to authenticate
with the AWS API.

- `aws_session_token` `(string: "")` - The AWS session token used to authenticate
Expand Down

0 comments on commit e45a124

Please sign in to comment.