
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@arkahna/nx-terraform
Advanced tools
Produces the ability to setup a NX repo with Terraform with Terragrunt for Azure environment management.
Produces the ability to setup a NX repo with Terraform with Terragrunt for Azure environment management.
pnpm add @arkahna/nx-terraform
To customise where the projects are created, put the following in your nx.json
"nxTerraformLayout": {
"appsDir": "terraform/apps",
"modulesDir": "terraform/modules",
"environmentsDir": "docs/environments"
}
The environments dir also supports the {project} placeholder which enables project specific environments.
Then add the Azure specific dependencies:
pnpm add @azure/arm-resources @azure/identity @azure/logger
| Concept | Description |
|---|---|
| Environment | An environment like dev, prod etc. There will be a terragrunt file in each project which deploys to that environment |
This plugin has 2 levels of generators, the first level operates at the repository level. For example environments exist at the repo level, ie you create an environment, then for each project you configure that project to deploy to that environment.
Ensure you have run pnpm exec nx g @arkahna/nx-terraform:tf-init to setup the repo
The plugin supports both terraform cloud and azure storage.
To use Terraform Cloud you to have a Terraform Cloud Organization created for this project. If you don't have one create one here
Also ensure the client has registered the following Resource Providers via the portal:
When naming Azure resources the standard is [-]- generally, the workload is defined at the repository level and can be overridden at the project level.
Environments have a base set of configuration and infrastructure. They normally contain:
You can choose to get NX to generate this infrastructure or specify id's of existing infrastructure to use instead.
nx g @arkahna/nx-terraform:create-azure-environment
You can also use the NX VSCode Extension to get a UI for each of these generators rather than using the terminal.
Creates a new Terraform project in the repo
pnpm nx g @arkahna/nx-terraform:project <projectname>
Adds a terragrunt configuration for that environment.
pnpm nx g \
@arkahna/nx-terraform:add-project-environment \
<projectname> \
--environment <environmentname>
Creates a service principal for GitHub actions to use.
Need to be logged in as an application administrator role.
This generator will do the following:
pnpm nx g \
@arkahna/nx-terraform:create-environment-sp \
--environment <environmentname>
nx apply <tf-project> --environment <env>
If you are running apply multiple times locally, run with --leaveFirewallExceptions to leave the firewall exceptions intact, then run with --quick to skip adding firewall rules, running init and skipping refresh during the plan phase.
Needs tfsec installed, or set tfsec command to false. See https://github.com/aquasecurity/tfsec#installation

FAQs
Produces the ability to setup a NX repo with Terraform with Terragrunt for Azure environment management.
The npm package @arkahna/nx-terraform receives a total of 13 weekly downloads. As such, @arkahna/nx-terraform popularity was classified as not popular.
We found that @arkahna/nx-terraform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.