Whitelist developer IPs for dev db firewall, to provide temporary access.
- Edit / add ip address of your machine to
ip_addresses.yamlfile along with your name using template:
- name: <NAME>
ip: <IPAddress>
NOTE:
- Participaing users are expected to edit only file
ip_addresses.yaml. - Developers are encouraged to remove their entry once they are done.
Terraform resources are being configured in containers.
Dockerfile: multi-stage container image build, includes whitelisting IP addresses.
NOTE: Second layer i.e. based on
azure-cliofficial image didn't provide latest terraform repository, so we are using alpine image to download terraform.
-
.dockerignore: prevents un-necessary resources including git from getting in conatiner -
azure-pipeline.yml: azure pipeline using hosted pool, builds container viaDockerfile -
providers.tf: terraform providers conf. i.e. only azurerm in this case -
config.tf: hold configurations for terraform, including version constraints -
whitelisting.tf: terraform configuration responsible for firewall configurations -
ip_addresses.yaml: collection of objects mapping i.e. user's name /w their ip addresses