This is the documentation of XLER8R project from CRE8IVELOGIX Inc. This project is created to help startups and SMBs who intend to start a application modernization journey to the cloud. XLER8R is designed to fast-track your cloud adoption from months to days. Using XLER8R, you can provision a fully compliant cloud-native infrastructure with just a few lines of code. To learn more about XLER8R visit xler8r.com
In order to access XLER8R customer need to be onboarded. For on-boarding customers provide their AWS account ID to be added to CRE8IVELOGIX managed AWS Code Artifactory. If you would like to be on-boarded in order to use XLER8R please email info@cre8ivelogix.com
After on-boarding customer will update npm config file to use CRE8IVELOGIX managed AWS Code Artifactory as their npm registry
Edit .npmrc file to add the following entry
registry=https://cre8ivelogix-ACCOUNT_ID.d.codeartifact.us-east-1.amazonaws.com/npm/cre8ivelogix-artifacts/
Then AWS cli needs to be configured with credentials for the customer AWS Account used for on-boarding
aws configure --profile npmregistry
Then use the following command to login to CRE8IVELOGIX managed AWS Code Artifactory
aws codeartifact login --tool npm --domain cre8ivelogix --domain-owner CRE8IVELOGIX_ACCOUNT_ID --repository --profile npmregistry cre8ivelogix-artifacts --region us-east-1
Once the login is successful, you can create a new CDK project by running the following commands
cdk init app --language typescript
This will create a bare bone CDK project.
Open CDK project in your favorite IDE and goto package.json file to add the XLER8R dependency
{
"dependencies": {
"@cre8ivelogix/xler8r": "CURRENT_VERSION"
}
}
Once package.json file is updated, you can install the dependencies by running the following commands
npm install
Make sure you have the following installed locally
You can also use docker superchain if it has all the required packages, current version is on older .NetCore (3.1)
docker run -it --rm --entrypoint sh -v $(pwd)/wa-cdk:/wa-cdk jsii/superchain:1-buster-slim-node16
npm run jsii-build
In order to build packages each language has a different configuration setup to use cre8ivelogic codeartifact as its repository source.
aws codeartifact login --tool dotnet --domain cre8ivelogix --domain-owner 175815161984 --repository cre8ivelogix-artifacts --region us-east-1 —profile repo
aws codeartifact login --tool pip --domain cre8ivelogix --domain-owner 175815161984 --repository cre8ivelogix-artifacts --region us-east-1 --profile repo
Currently, there is no way to configure Maven to talk to codeartifact, logged a bug with JSII packmak project
aws codeartifact login --tool npm --domain cre8ivelogix --domain-owner 175815161984 --repository cre8ivelogix-artifacts --region us-east-1 --profile repo
After all the logins are successful you can run the following command to create packages.
npm run package
Run the following script, once the packages are build in dist folder, update the version in the script
./publish-java.sh
Run the following script, once the packages are build in dist folder, update the version in the script
./publish-nuget.sh
Run the following script, once the packages are build in dist folder, update the version in the script
./publish-pypi.sh
./publish-js.sh
For some reason the following script did not work for NPM, i had to put in AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN and AWS_ACCESS_KEY_ID and then ran the
npx publib-npm
Now that you have all the constructs available from XLER8R, use them just like any other CDK construct
For example the below code snippet we are using Build a secure and compliant serverless API infrastructure.
import {RestApi} from "aws-cdk-lib/aws-apigateway";
new RestApi(this, "MyApis", {
x8DomainName: "example.com",
x8SubDomain: "test-api"
})
The version of all CDK packages are fixed to the same version. If an upgrade is desired, please make sure that all CDK packages are upgraded to the same version at the same time. Different versions of CDK mixed in the project may cause type incompatibilities.
This class is used to setup the management account and the organizational structure based on the best practice recommendations. Before using X8OrganizationalSetup the following steps need to be performed.
Generated using TypeDoc