Azure / Azure/terraform

<title>resource "azurerm_site_recovery_replication_recovery_plan" "

Open
#237 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HCL
Stars
925
Forks
930
Avg merge
4d 15h
Merged PRs (30d)
5

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Where would you like this feature added?

Verified Modules

### Is this feature ask due to a problem that you are encountering?

Here is the resource I am trying to deploy:
![image](https://github.com/Azure/terraform/assets/47122690/17fe1ad6-f05d-4878-b61a-871c66a12dd0)

In the above code , getting issues in specifying replicated_protected_items & runbook_id as both are specified in a resource block that uses for_each and they both require for_each while getting declared in the above resource....

### Describe potential solutions.

Tried to specify replicated_protected_items in locals.tf but no luck

Any way that I can combine the conditions of both for_each in a single for_each statement

![image](https://github.com/Azure/terraform/assets/47122690/ac6e8005-e08a-4e0c-aaa6-317407034f68)

### Anything else?

Current code:
![image](https://github.com/Azure/terraform/assets/47122690/5a1948cc-dc80-4eb9-ab81-ac80a1f41347)

pipeline error:
![image](https://github.com/Azure/terraform/assets/47122690/a41e39e3-db40-447f-b12c-86b60d573672)

If I change the post_action type to "ScriptActionDetails" and specify the scriot
_path instead, I get below pipeline error:
![image](https://github.com/Azure/terraform/assets/47122690/dfc4b9b3-f3f9-4722-bd2a-53d95212a82a)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the azurerm_site_recovery_replication_recovery_plan resource block and the attempted locals.tf definition described in the issue. Reproduce the pipeline errors for replicated_protected_items, runbook_id, and the alternate ScriptActionDetails configuration. Done means the requested Verified Module configuration supports the required iteration and passes its validation or acceptance checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, terraform
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.