-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use "{authType}_auth" blocks for configuring authentication (current support for AWS only) * Change names of inputs to "services_url" and "services_auth_type" for clarity * Default services_auth_type to the auth type for the only auth block, if only one is present * Update provider documentation
- Loading branch information
1 parent
0028ec7
commit 7924cf4
Showing
9 changed files
with
174 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
# No auth | ||
provider "mcma" { | ||
url = "https://service-registry-example.mcma.io/services" | ||
auth { | ||
type = "AWS4" | ||
data = { | ||
accessKey = var.access_key | ||
secretKey = var.secret_key | ||
} | ||
services_url = "https://service-registry-example.mcma.io/api/services" | ||
} | ||
|
||
# AWS auth with profile | ||
provider "mcma" { | ||
services_url = "https://service-registry-example.mcma.io/api/services" | ||
aws4_auth { | ||
region = "us-east-1" | ||
profile = "myprofile" | ||
} | ||
} | ||
|
||
# AWS auth with keys | ||
provider "mcma" { | ||
services_url = "https://service-registry-example.mcma.io/api/services" | ||
aws4_auth { | ||
region = "us-east-1" | ||
access_key = "accesskey" | ||
secret_key = "secretkey" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.