A base package which defines all of our cdktf for our customer stacks.
See also the Getting started wiki for further detailed instructions
- ** The below commands are for reference, synthesis and deployments are done within stacks that consume this package **
- Testing resource synthesis and deployment is done using the cdktf-cli
- Basic synthesis:
cdktf synth
- Basic deployment:
cdktf deploy
- You can run
cat help
inside this package to learn more - You can also run
cdktf -help
for further guidance
- This package is published to an Azure artifact feed, so it can be consumed by other customer stacks
- Changes are built and then published to an Azure Artifacts feed via a build pipeline
- The Azure Artifact feed is
its-cdktf-base
- You still need to run 'poetry version patch' and include the
pyproject.toml
in your commit - It is important you follow the above step, otherwise the version in the pipeline and feed will not have parity
- This should be avoided generally speaking
- To build and publish this package locally to the Azure artifact feed:
- You will need to install
twine
,keyring
,artifacts-keyring
- Within your poetry virtualenv you can
poetry add twine keyring artifacts-keyring
- Then run
poetry install
- You will need to install
- Steps to manually build and publish are quite simple
- Run
poetry version patch
- Run
poetry build
- Run
twine upload -r its-cdktf-base dist/*
- Run
- If you're using Linux, ensure you've installed the prerequisites, which are required for artifacts-keyring.