Skip to content

Commit

Permalink
change token name [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
elsegev committed Oct 24, 2023
1 parent 0fff0f5 commit 59e4301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/aws/hub/dra_assocoation.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locals {
admin_username = var.dra_details == null ? "" : var.dra_details.username
admin_address = var.dra_details == null ? "" : var.dra_details.address
dra_association_commands = var.dra_details == null ? "" : <<-EOF
curl -k --max-time 10000 -X POST -G 'https://127.0.0.1:8443/register-to-dra' -d adminIpOrHostname=${local.admin_address} -d adminRegistrationPassword=${local.admin_password} -d adminReportingServer=true -d analyticsArchiveUsername=${local.admin_username} -d analyticsArchivePassword=${local.archiver_password} -d resumeDraJobs=true --header "Authorization: Bearer ${module.hub_instance.access_tokens["dam-to-hub"].token}"
curl -k --max-time 10000 -X POST -G 'https://127.0.0.1:8443/register-to-dra' -d adminIpOrHostname=${local.admin_address} -d adminRegistrationPassword=${local.admin_password} -d adminReportingServer=true -d analyticsArchiveUsername=${local.admin_username} -d analyticsArchivePassword=${local.archiver_password} -d resumeDraJobs=true --header "Authorization: Bearer ${module.hub_instance.access_tokens["archiver"].token}"
EOF
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/sonar-base-instance/access_tokens.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
access_tokens = var.generate_access_tokens ? (var.resource_type != "hub" ? [] : [
{
"name" : "dam-to-hub",
"name" : "archiver",
"scopes" : jsonencode(["archiver:service:upload"])
},
{
Expand Down

0 comments on commit 59e4301

Please sign in to comment.