Vault initialization in aws EC2 instance

ui = true
cluster_addr = “https://172.31.43.215:8201
api_addr = “https://172.31.43.215:8200
disable_mlock = true

storage “file” {
path = “/mnt/vault/data”
}

listener “tcp” {
address = “0.0.0.0:8200”
tls_disable = 1
}

i have the basic configuration to initialize vault but getting error for “vault status” command ----------> [Error checking seal status: Get https127.0.0.1:8200/v1/sys/seal-status: http: server gave HTTP response to HTTPS client]

I don’t know the details of the vault configuration since I have never set one up - meaning that I am not going to be able to give you the exact answer, however the error indicates that you have not properly configured it to serve HTTPS, so it served HTTP instead.

To serve HTTPS, you will need a valid certificate and its key declared somewhere in the configuration.