Open cnguyenp opened 5 years ago
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.
outbound_ip_addresses
I am not sure where do I get usernameand api_keyfor the provider.
username
api_key
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_keyfrom here
and I am getting username from here
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
andapi_key
for the provider.Here is my resources
I am getting
api_key
from hereand I am getting username from here