# terraform-ows-blacklist-manager



# Cmd

1. Init terraform settings. 
makesure you have valid aws creds in env set prior to running init command.

```
/terraform-ows-blacklist-manager/dev (master)
$ terraform init
```

2. Dry run the settings.

```
/terraform-ows-blacklist-manager/dev (master)
$ terraform plan
>> var.LOGGER_DSN
>>   Enter a value: test
>> 
>> var.SENTRY_DSN
>>   Enter a value: test
>> 
>> Refreshing Terraform state in-memory prior to plan...
>> The refreshed state will be used to calculate this plan, but will not be
>> persisted to local or remote state storage.
>> ...
>>  + module.ows_blacklist_manager_environment.aws_security_group_rule.allow_lb_inbound
>>       id:                            <computed>
>>       cidr_blocks.#:                 "1"
>>       cidr_blocks.0:                 "0.0.0.0/0"
>>       from_port:                     "443"
>>       protocol:                      "tcp"
>>       security_group_id:             "${aws_security_group.load_balancer_security_group.id}"
>>       self:                          "false"
>>       source_security_group_id:      <computed>
>>       to_port:                       "443"
>>       type:                          "ingress"
>> 
>> 
>> Plan: 19 to add, 0 to change, 0 to destroy.
>> 
------------------------------------------------------------------------

Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.

```

3. Apply the settings.

```
$ terraform apply
```

4. Destroy all created test EBs and policies.

```
$ terraform destroy
```
