# atmos aws cloudformation get policy

Print the stack policy currently installed on the deployed stack.
Use this command to inspect which update restrictions CloudFormation enforces.

> ⚠️ Experimental

**CloudFormation Configuration**

Configure templates, parameters, and delivery targets for your component.
Configuration Reference[Read more](/stacks/components/aws-cloudformation)

## Usage

```shell
atmos aws cloudformation get policy <component> --stack <stack> [options]
```

## Examples

```shell
atmos aws cloudformation get policy vpc -s plat-ue2-dev
```

## Arguments

- **`component` (required unless selecting multiple components)**
  CloudFormation component name in the Atmos stack.

## Flags

- **`--stack`, `-s` (required for a single component)**
  Atmos stack. With bulk selection flags, limits the selected components to this stack.

## Output

If the stack has no policy set (CloudFormation's default), `get policy` prints
a message saying so instead of an empty body.

If the stack does not exist, `get policy` fails with a stack-not-found error that points at
`atmos aws cloudformation apply`, instead of AWS's raw validation message.

This command does not fire [lifecycle hooks](/stacks/components/aws-cloudformation#lifecycle-hooks).
