Skip to content

launchbynttdata/tf-azurerm-module_primitive-redis_cache_access_policy

Repository files navigation

tf-azurerm-module_primitive-redis_cache_access_policy

License License: CC BY-NC-ND 4.0

Overview

An access policy that allows configuration of Redis permissions.

Local Development and Testing

To set yourself up for local development and testing activities, ensure you have the following software available on your PATH:

  • make
  • git (ensure your user.name and user.email are configured)
  • git-repo
  • asdf or mise
  • python3 (for pre-commit hooks)

You will also need to authenticate to the Cloud Provider. Terraform will use the default credential resolution mechanism, so ensure you are signed on through the CLI.

Clone this repository to your machine and issue the following command:

make configure

This will synchronize supporting repositories into this directory and expose additional targets.

To perform linting actions against the Terraform module and Terratests, issue the following command:

make lint

To provision cloud resources and perform tests against them, issue the following command:

make test

Note that make test causes the creation of some ignored files on your filesystem. This behavior is expected and we want to exclude any state or lockfiles from being pushed to the repository.

These two commands will be utilized in the pipeline and if you cannot run them successfully locally, you are unlikely to see a different result in the pipeline.

For convenience, a target exists that will execute both make lint and make test for you in sequence. Issue the following command to perform a holistic lint and test:

make check

Requirements

Name Version
terraform ~> 1.0
azurerm ~> 3.117

Modules

No modules.

Resources

Name Type
azurerm_redis_cache_access_policy.policy resource

Inputs

Name Description Type Default Required
name The name of the Redis Cache Access Policy. Changing this forces a new Redis Cache Access Policy to be created. string n/a yes
redis_cache_id The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy to be created. string n/a yes
permissions Permissions that are going to be assigned to this Redis Cache Access Policy. string n/a yes

Outputs

Name Description
id The ID of the Redis Cache Access Policy.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published