Note: This is not an issue. This is a request for help.
I am trying to add outbound_ip_addresses from Azure to MongoDB Atlas.
And I am having issue with authorization.
I have added my IP to whitelist.
I am not sure where do I get username and api_key for the provider.
provider "mongodbatlas" {
username = "${var.mongodb_atlas_username}"
api_key = "${var.mongodb_atlas_api_key}"
}
Here is my resources
resource "mongodbatlas_ip_whitelist" "staging-app-service" {
group = "xxxxx"
for_each = toset(split(",", "${azurerm_app_service.jamboree_as.outbound_ip_addresses}"))
cidr_block = "${each.value}/32"
comment = "staging outbound ip ${each.key}"
depends_on = [
"azurerm_app_service.jamboree_as"
]
}
I am getting api_key from here

and I am getting username from here
