# Change infrastructure as code: propose a pull request

When Terraform, CDK, CloudFormation or Pulumi manages a resource, CloudConsole finds it in your GitHub code and proposes the change as a pull request. Pro.

Changing a resource in AWS that your infrastructure code manages lasts until the next deploy puts it back. CloudConsole notices who owns a resource and offers the change where it belongs.

## How it knows

From the resource's tags (Terraform and Pulumi tags, `yor` git tags such as `git_repo` and `git_file`), or from its CloudFormation stack, where CDK records each resource's construct path. The **In code** card on ECS services, Lambda functions, alarms, Auto Scaling groups and EC2 instances says which tool owns it and tells you to change it in code.

## Find it in your code

With [GitHub connected](https://cloudconsole.dev/help/github-actions), tap **Search code**: the app searches up to six watched repositories for the resource (CDK construct ids, Terraform blocks, CloudFormation logical ids), or opens the file a `git_file` tag names straight away. Search only runs when you tap it.

## Propose the change

For an IaC-owned resource, **Propose change…** replaces the manual button, and the manual change moves to **More → Change in AWS anyway** with a warning. It works for ECS desired count, Lambda memory and timeout, alarm threshold and evaluation periods, and Auto Scaling min, max and desired. The app edits that one setting in the matched block (TypeScript or Python CDK, Terraform, CloudFormation YAML or JSON), shows the diff, and opens a pull request on a new `cloudconsole/…` branch through your [guardrails](https://cloudconsole.dev/help/guardrails). Values that come from a variable or expression aren't edited: you get **Open in GitHub** instead.

The card then follows the pull request: open, merged and waiting for the deploy, deployed (once the live value matches) or closed.

## GitHub permissions

A fine-grained token needs **Contents** read and write and **Pull requests** read and write on the repositories, as well as the Actions permissions in [GitHub Actions](https://cloudconsole.dev/help/github-actions). Proposing a change needs Pro.

## Questions

### Does CloudConsole push to my main branch?

No. It creates a new branch and opens a pull request; your normal review and CI decide what merges.

### Which tools does it recognise?

Terraform (including yor tags), AWS CDK in TypeScript and Python, CloudFormation and SAM templates, and Pulumi tags.

**Still stuck?**

Email [support@cloudconsole.dev](mailto:support@cloudconsole.dev) with what you tried and any message the app showed. Don’t send access keys or secrets. We reply within two working days.

## Related

- [GitHub Actions: runs, logs, re-runs and approvals](https://cloudconsole.dev/help/github-actions) – Using the app
- [Guardrails: how changes are confirmed](https://cloudconsole.dev/help/guardrails) – Safety & changes
- [Stack graph](https://cloudconsole.dev/help/stack-graph) – Using the app
- [What you can create and change from your phone](https://cloudconsole.dev/help/actions) – Safety & changes

[All help topics →](https://cloudconsole.dev/help/)

---

Source: https://cloudconsole.dev/help/iac-pull-requests

CloudConsole is an independent iPhone and Android app for Amazon Web Services by Cloudconcur Ltd. It is not affiliated with Amazon Web Services.
