# Deployment from Shared AMI

Before publishing each version in the AWS Marketplace, Nuvens must create an AMI (Amazon Machine Image) in a secure environment. This AMI can be shared with other AWS accounts and regions, allowing it to be consumed through various deployment mechanisms, such as **Terraform**, **Git**, **CloudFormation**, or manual processes.

When deploying Nuvens custom AMI, several AWS infrastructure requirements must be met. These are typically automated through the CloudFormation template deployed from the AWS Marketplace. These requirements include:

1. [Security Group:](/install/alternate-deployment-options/deployment-from-shared-ami/security-group.md) for the EC2 instance(s), with inbound and outbound rules.
2. [IAM Requirements: Custom Policies](/install/alternate-deployment-options/deployment-from-shared-ami/iam-requirements-custom-policies.md).
3. [IAM Requirements: Role and EC2 instance profile](/install/alternate-deployment-options/deployment-from-shared-ami/iam-requirements-role-and-ec2-instance-profile.md).
4. [Shared AMI](/install/alternate-deployment-options/deployment-from-shared-ami/shared-ami-amazon-machine-image.md) (Amazon Machine Image): it must be present in your AWS Account and Region prior to the deployment.

For a real-world example of how to deploy an AMI via **Terraform**, please check this repository below for guidance and best practices:

{% embed url="<https://gitlab.com/nuvens-public/wsm-from-ami>" %}

{% hint style="info" %}
For assistance in obtaining the AMI in your AWS account, please contact **<support@workspacesmanager.com>** for further guidance and support.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nuvens.cloud/install/alternate-deployment-options/deployment-from-shared-ami.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
