Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinesolutions/aem-aws-stack-builder
Adobe Experience Manager (AEM) infrastructure builder on AWS using CloudFormation stacks
https://github.com/shinesolutions/aem-aws-stack-builder
aem aem-opencloud aws cloudformation
Last synced: about 5 hours ago
JSON representation
Adobe Experience Manager (AEM) infrastructure builder on AWS using CloudFormation stacks
- Host: GitHub
- URL: https://github.com/shinesolutions/aem-aws-stack-builder
- Owner: shinesolutions
- License: apache-2.0
- Created: 2016-12-15T22:06:46.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T05:16:35.000Z (6 months ago)
- Last Synced: 2024-05-07T06:26:41.009Z (6 months ago)
- Topics: aem, aem-opencloud, aws, cloudformation
- Language: Shell
- Homepage:
- Size: 3.63 MB
- Stars: 43
- Watchers: 18
- Forks: 38
- Open Issues: 61
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://github.com/shinesolutions/aem-aws-stack-builder/workflows/CI/badge.svg)](https://github.com/shinesolutions/aem-aws-stack-builder/actions?query=workflow%3ACI)
[![Known Vulnerabilities](https://snyk.io/test/github/shinesolutions/aem-aws-stack-builder/badge.svg)](https://snyk.io/test/github/shinesolutions/aem-aws-stack-builder)AEM AWS Stack Builder
---------------------A set of [Ansible](https://www.ansible.com/) playbooks for building [Adobe Experience Manager (AEM)](http://www.adobe.com/au/marketing-cloud/enterprise-content-management.html) architectures on [AWS](https://aws.amazon.com/) using CloudFormation stacks.
Stack Builder has been designed with a focus on modularity, allowing the separation between network and application components, while also providing a flexible way to support multiple architectures that run a combination of the following components across multiple AEM versions:
* `author-primary` - contains [AEM Author](https://helpx.adobe.com/experience-manager/6-3/sites/authoring/using/author.html) running in primary mode
* `author-standby` - contains [AEM Author](https://helpx.adobe.com/experience-manager/6-3/sites/authoring/using/author.html) running in [standby](https://helpx.adobe.com/experience-manager/6-3/sites/deploying/using/tarmk-cold-standby.html) mode
* `publish` - contains [AEM Publish](https://helpx.adobe.com/experience-manager/6-3/sites/authoring/using/author.html)
* `author-dispatcher` - contains [AEM Dispatcher](https://helpx.adobe.com/experience-manager/dispatcher/using/dispatcher.html) with author-dispatcher configuration, sitting in front of `author` component
* `publish-dispatcher` - contains [AEM Dispatcher](https://helpx.adobe.com/experience-manager/dispatcher/using/dispatcher.html) with publish-dispatcher configuration, sitting in front of `publish` component
* `orchestrator` - contains [AEM Orchestrator](https://github.com/shinesolutions/aem-orchestrator)
* `chaos-monkey` - contains [Chaos Monkey](https://netflix.github.io/chaosmonkey/)
* `author-publish-dispatcher` - contains AEM Author, AEM Publish, and AEM DispatcherStack Builder currently supports the following AEM architectures:
* Full Set ([diagram](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/architecture-full-set.png)) - includes AEM Author, Publish, and Dispatcher on separate EC2 instances with blue-green deployment, auto-recovery, auto-scaling, backup, and compaction support, suitable for all types (e.g. production, staging, testing, and development) of environments
* Consolidated ([diagram](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/architecture-consolidated.png)) - includes AEM Author, Publish, and Dispatcher on a single EC2 instance with backup and compaction support and a much lower AWS cost footprint, suitable for testing and development environmentsOther than the above AEM architectures, Stack Builder also provides the following utilities:
* Stack Manager([diagram](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/architecture-stack-manager.png)) - includes [AEM Stack Manager](https://github.com/shinesolutions/aem-stack-manager-cloud), set of AWS Lambda functions that will execute AEM functionalities via an SSM agent
* Network - includes CloudFormation templates for creating VPC, subnets, and some sample NAT Gateway and Bastion set upLearn more about AEM AWS Stack Builder:
* [Installation](https://github.com/shinesolutions/aem-aws-stack-builder#installation)
* [Configuration](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/configuration.md)
* [Usage](https://github.com/shinesolutions/aem-aws-stack-builder#usage)
* [Network](https://github.com/shinesolutions/aem-aws-stack-builder#network)
* [AEM Full-Set Architecture](https://github.com/shinesolutions/aem-aws-stack-builder#aem-full-set-architecture)
* [AEM Consolidated Architecture](https://github.com/shinesolutions/aem-aws-stack-builder#aem-consolidated-architecture)
* [AEM Stack Manager](https://github.com/shinesolutions/aem-aws-stack-builder#aem-stack-manager)
* [Testing](https://github.com/shinesolutions/aem-aws-stack-builder#testing)
* [AWS Resources](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/aws-resources.md)
* [AWS System Tags](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/aws-system-tags.md)
* [Customisation Points](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/customisation-points.md)
* [Recovery](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/recovery.md)
* [Recovery Steps](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/recovery-steps.md)
* [Recovery Scenarios](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/recovery-scenarios.md)
* [Descriptors](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/descriptors.md)
* [Deployment Descriptor Definition](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/descriptors-definition-deployment.md)
* [Package Backup Descriptor Definition](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/descriptors-definition-package-backup.md)
* [Content Health Check Descriptor Definition](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/descriptors-definition-content-health-check.md)
* [Logs](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/logs.md)
* [Communication Flow](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/communication-flow.md)
* [Permission Types](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/permission-types.md)
* [Snapshot Types](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/snapshot-types.md)
* [Frequently Asked Questions](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/faq.md)
* [Troubleshooting Guide](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/troubleshooting-guide.md)
* [Upgrade Guide](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/upgrade-guide.md)
* [Stacks Structure](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/stacks-structure.md)
* [AWS Services](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/aws-services.md)
* [Presentations](https://github.com/shinesolutions/aem-aws-stack-builder/#presentations)AEM AWS Stack Builder is part of [AEM OpenCloud](https://aemopencloud.io) platform.
Installation
------------- Either clone AEM AWS Stack Builder `git clone https://github.com/shinesolutions/aem-aws-stack-builder.git` or download one of the [released versions](https://github.com/shinesolutions/aem-aws-stack-builder/releases)
- Install the following required tools:
* [Ruby](https://www.ruby-lang.org/en/) version 2.3.0 or later
* [Python](https://www.python.org/downloads/) version 2.7.x
* [GNU Make](https://www.gnu.org/software/make/)Alternatively, you can use [AEM Platform BuildEnv](https://github.com/shinesolutions/aem-platform-buildenv) Docker container to run AEM AWS Stack Builder build targets.
- Resolve the [Python packages](https://pip.readthedocs.io/en/1.1/requirements.html) dependencies by running `make deps`Usage
------ Set up the required [AWS resources](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/aws-resources.md)
- Create [configuration file](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/configuration.md)
- Set up the configuration files by running `make config config_path=`
- Download open source library artifacts and upload them to S3 by running `make library config_path=`### Network
Ensure [configuration file for network](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/configuration.md) has been set up.
From the above base configuration, generate template network configuration file:
make generate-network-config stack_prefix= config_path=
The above is a once off action which will create a bootstrap network configuration file at `/network.yaml`, this will save you the trouble of manually creating a long configuration file. Alternatively, you can create the network configuration file manually.
Create VPC stack:
make create-vpc stack_prefix= config_path=
Create network resources stack:
make create-network stack_prefix= config_path=
Alternatively, if you don't have the permission to create VPC and/or network resources, you can create a network-exports stack that contains the details of your subnets:
make create-network-exports stack_prefix= config_path=
### AEM Stack Manager
Ensure [configuration file for AEM Stack Manager](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/configuration.md) has been set up.
Create AEM Stack Manager stacks:
make create-stack-manager stack_prefix= config_path=
### AEM Full-Set Architecture
Ensure [configuration file for AEM Full-Set architecture](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/configuration.md) has been set up.
The simplest way to create this AEM architecture is by standing up both full set prerequisites and main stacks in one go:
make create-full-set stack_prefix= config_path=
However, it is also possible to separate the prerequisites from the main stacks. A use case scenario for this set up is when you want to keep the prerequisites stack around while creating/deleting the main stack within an environment, this allows you to cut some cost and to speed up environment standing up time from the second time onward.
Create prerequisites stack which contains the instance profiles, security groups, and messaging SNS SQS resources:
make create-full-set-prerequisites stack_prefix= config_path=
Create main stack which contains EC2 and Route53 resources:
make create-full-set-main stack_prefix= prerequisites_stack_prefix= config_path=
### AEM Consolidated Architecture
Ensure [configuration file for AEM Consolidated architecture](https://github.com/shinesolutions/aem-aws-stack-builder/blob/master/docs/configuration.md) has been set up.
The simplest way to create this AEM architecture is by standing up both full set prerequisites and main stacks in one go:
make create-consolidated stack_prefix= config_path=
It is also possible to separate the prerequisites from the main stacks. A use case scenario for this set up is when you want to reuse the same prerequisites stack for multiple main stacks. Please note that having a one to many mapping between prerequisites stack to multiple main stacks is only applicable for development environments, and not for production.
Create prerequisites stack which contains the instance profiles and security groups:
make create-consolidated-prerequisites stack_prefix= config_path=
Create main stack which contains EC2 and Route53 resources:
make create-consolidated-main stack_prefix= prerequisites_stack_prefix= config_path=
### Switch DNSYou can point a DNS record to an AEM Full-Set or AEM Consolidated architecture:
make switch-dns-full-set stack_prefix= config_path= publish_dispatcher_hosted_zone= publish_dispatcher_record_set= author_dispatcher_hosted_zone= author_dispatcher_record_set=
make switch-dns-consolidated stack_prefix= config_path= author_publish_dispatcher_hosted_zone= author_publish_dispatcher_record_set=
Testing
-------### Testing with remote dependencies
You can run integration test for creating, testing, and deleting the AEM Stack Manager, AEM Consolidated, AEM Full-Set environments using the command `make test-integration-- test_id=`, which downloads the dependencies from the Internet.
### Testing with local dependencies
If you're working on the dependencies of AEM AWS Stack Builder and would like to test them as part of environment creation before pushing the changes upstream, you need to:
- Clone the dependency repos [AEM AWS Stack Provisioner](https://github.com/shinesolutions/aem-aws-stack-provisioner), [Puppet AEM Resources](https://github.com/shinesolutions/puppet-aem-resources), [Puppet AEM Curator](https://github.com/shinesolutions/puppet-aem-curator), [Puppet AEM Orchestrator](https://github.com/shinesolutions/puppet-aem-orchestrator), [Puppet SimianArmy](https://github.com/shinesolutions/puppet-simianarmy), [AEM Hello World Custom Stack Provisioner](https://github.com/shinesolutions/aem-helloworld-custom-stack-provisioner), [AEM Hello World Config](https://github.com/shinesolutions/aem-helloworld-config) at the same directory level as AEM AWS Stack Builder
- Make your code changes against those dependency repos
- Run `make test-integration-local-- test_id=` for integration testing using local dependencies, which copies those local dependency repos to your local AEM AWS Stack Provisioner, packages it and versioned with your `test_id`, uploads to S3, and uses them as part of the testPresentations
-------------* [AEM OpenCloud](https://www.slideshare.net/cliffano/aem-opencloud)
* [AEM OpenCloud - What's New Since 2.0.0](https://www.slideshare.net/cliffano/aem-opencloud-whats-new-since-200)
* [AEM Open Cloud - The First Two Years](https://www.slideshare.net/cliffano/aem-open-cloud-the-first-two-years)
* [Open Source AEM Platform: A Short Intro](https://www.slideshare.net/cliffano/open-source-aem-platform-a-short-intro-89967729)