-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infl 8529 use official hashicorp http provider instead of devops rod …
…terracurl (#48) BREAKING CHANGE: Replace terracurl with official hashicorp http
- Loading branch information
1 parent
a104268
commit 270074e
Showing
9 changed files
with
55 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
data "terracurl_request" "firefly_login" { | ||
name = "firefly_aws_integration" | ||
url = "${var.firefly_endpoint}/account/access_keys/login" | ||
method = "POST" | ||
headers = { | ||
Content-Type: "application/json", | ||
data "http" "firefly_login" { | ||
url = "${var.firefly_endpoint}/account/access_keys/login" | ||
method = "POST" | ||
request_headers = { | ||
Content-Type = "application/json" | ||
} | ||
request_body = jsonencode({ "accessKey"=var.firefly_access_key, "secretKey"=var.firefly_secret_key }) | ||
} |
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,8 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
terracurl = { | ||
version = "0.1.0" | ||
source= "devops-rob/terracurl" | ||
http = { | ||
source = "hashicorp/http" | ||
version = "3.4.2" | ||
} | ||
} | ||
} |
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,34 +1,16 @@ | ||
resource "terracurl_request" "firefly_run_workflow_request" { | ||
name = "firefly run workflow on aws provider integration" | ||
url = "${var.firefly_endpoint}/integrations/aws/runWorkflow" | ||
method = "POST" | ||
request_body = jsonencode( | ||
data "http" "firefly_run_workflow_request" { | ||
url = "${var.firefly_endpoint}/integrations/aws/runWorkflow" | ||
method = "POST" | ||
request_headers = { | ||
Content-Type = "application/json" | ||
Authorization = "Bearer ${var.firefly_token}" | ||
} | ||
request_body = jsonencode( | ||
{ | ||
"name"= var.name | ||
"eventsRoleArn": var.events_role_arn | ||
"eventDrivenRegions": var.event_driven_regions | ||
} | ||
) | ||
|
||
headers = { | ||
Content-Type = "application/json" | ||
Authorization: "Bearer ${var.firefly_token}" | ||
} | ||
|
||
lifecycle { | ||
ignore_changes = [ | ||
headers, | ||
destroy_headers, | ||
request_body | ||
] | ||
} | ||
response_codes = [200, 409] | ||
|
||
destroy_url = "https://www.google.com" | ||
destroy_method = "GET" | ||
|
||
destroy_headers = {} | ||
|
||
destroy_request_body = "" | ||
destroy_response_codes = [200] | ||
} |
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