Back to Terragrunt

Source Map

docs/src/data/flags/source-map.mdx

1.0.3816 B
Original Source

import { Aside } from '@astrojs/starlight/components';

Allows you to replace source URLs that match a specified pattern with a different URL. This affects both direct source references and sources specified in dependency blocks.

The format is source-regex=replacement-source.

For example:

bash
terragrunt run plan --source-map "git::ssh://[email protected]/org/repo.git=../local/repo"

This will replace any source URL that matches git::ssh://[email protected]/org/repo.git with ../local/repo.

<Aside type="caution"> Source mapping only performs literal matches on the URL portion. For example, a map key of `ssh://[email protected]/org/repo.git` will not match sources of the form `git::ssh://[email protected]/org/repo.git`. The latter requires a map key of `git::ssh://[email protected]/org/repo.git`. </Aside>