Resources

formica resources

Through the resources command you can list all resources for a deployed stack so its easy for you to get the physical id of a resource you deployed.

The command will print the logical id, physical id, type and status.

Example

root@67c57a89511a:/app/docs/examples/s3-bucket# formica resources --stack formica-example-stack
+------------------+------------------------------------------------------+-----------------+-----------------+
|    Logical ID    |                     Physical ID                      |      Type       |     Status      |
+==================+======================================================+=================+=================+
| DeploymentBucket | formica-example-stack-deploymentbucket-1tzvltuaftxso | AWS::S3::Bucket | CREATE_COMPLETE |
+------------------+------------------------------------------------------+-----------------+-----------------+

Usage

usage: formica resources [-h] [--region REGION] [--profile PROFILE]
                         [--stack STACK]
                         [--config-file CONFIG_FILE [CONFIG_FILE ...]]

List all resources of a stack

options:
  -h, --help            show this help message and exit
  --region REGION       The AWS region to use
  --profile PROFILE     The AWS profile to use
  --stack STACK, -s STACK
                        The Stack to use
  --config-file CONFIG_FILE [CONFIG_FILE ...], -c CONFIG_FILE [CONFIG_FILE ...]
                        Set the config files to use