Skip to content

Feature: Add HTTPS Resource Request #300

@srikanth2302

Description

@srikanth2302

Terraform CLI and Provider Versions

Terraform CLI Version: v1.3.6
Provider Version: 3.4.0

Use Cases or Problem Statement

I Would like to have a http resource request so that terraform can perform the Post Operation only if Attributes of the resource changed. DataSource is continuously performing POST Request which is not required.

Proposal

Something like below `

resource "http" "Post_Request" {
  name         = "vault-mount"
  url          = "https://localhost:8200/v1/sys/mounts/"
  method       = "POST"
  request_body = <<EOF
{
  "type": "aws",
  "config": {
    "force_no_cache": true
  }
}

EOF

  headers = {
    X-Vault-Token = "xxx"
  }
}

How much impact is this issue causing?

High

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions