Replies: 3 comments 17 replies
-
great idea! for parameters we use a "merge" (<<) operator: Parameters:
<<: !Include "../organization-parameters.yml"
Additional:
Type: String
Default: “parameter-default” The downside is that the yml parser would only allow for 1 '<<' element per parent (you guessed ~ it is a fake merge operator). thanks for the kind words! |
Beta Was this translation helpful? Give feedback.
-
the yaml parser supports anchors. that would probably help quite a bit already: a newer version of the yaml parser also has proper merge operator support.
where any of the included files can have a 'bunch of accounts' |
Beta Was this translation helpful? Give feedback.
-
Did this work in the end? And related - is there a maximum number accounts that can be supported in a single Orgformation Setup? |
Beta Was this translation helpful? Give feedback.
-
HI Olaf & Community!
first of all, thank you very much for the tool, works awesome!
However, i have a question: I am coding the organization for a company with +80 accounts and 7 OUs and the file gets extremely big...... I have been researching if i could reference the accounts from another .yml file as we would do in terraform but cannot find an useful easy way...
Here a example of my code for an OU with some accounts incluided:
StagingOU:
Type: OC::ORG::OrganizationalUnit
Properties:
OrganizationalUnitName: Staging
Accounts:
- !Ref InfraStagingAccount
- !Ref KaufberaterStagingAccount
- !Ref MidasStagingAccount
- !Ref NavsyncStagingAccount
- !Ref NpsintlStagingAccount
- !Ref OraboStagingAccount
- !Ref SdmStagingAccount
InfraStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Infrastructure Staging
RootEmail: [email protected]
Alias: infra staging
KaufberaterStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Kaufberater Staging
RootEmail: [email protected]
Alias: kaufberater staging
MidasStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Midas Staging
RootEmail: [email protected]
Alias: midas staging
NavsyncStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Navsync Staging
RootEmail: [email protected]
Alias: navsync staging
NpsintlStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Npsintl Staging
RootEmail: [email protected]
Alias: npsintl staging
OraboStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Orabo Staging
RootEmail: [email protected]
Alias: orabo staging
SdmStagingAccount:
Type: OC::ORG::Account
Properties:
AccountName: Sdm staging
RootEmail: awsacc-sdm-stg@xxx
Alias: sdm staging
Would it be possible, for example, to add a stagingaccounts.yml file and reference them concretely in the Organizational Unit? Something like this:
StagingOU:
Type: OC::ORG::OrganizationalUnit
Properties:
OrganizationalUnitName: Staging
Accounts:
- !Ref ./stagingaccounts.yml::{$InfrastructureStaging}
- !Ref ./stagingaccounts.yml::{$InfrastructureStaging}
- !Ref ./stagingaccounts.yml::{$InfrastructureStaging}
- !Ref ./stagingaccounts.yml::{$InfrastructureStaging}
Some kinf of imort of the whole resource from other file?
Would appreciate help!
<3
Beta Was this translation helpful? Give feedback.
All reactions