Skip to content

Commit

Permalink
Merge pull request pulumi#1319 from pulumi/aqiu/update-examples-yaml
Browse files Browse the repository at this point in the history
Update YAML invoke syntax
  • Loading branch information
aq17 committed Dec 8, 2022
2 parents cea5f33 + 5d4a2c0 commit 576e3bc
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions aws-yaml-ansible-wordpress/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ config:
variables:
# Dynamically fetch AZs so we can spread across them.
availabilityZones:
Fn::Invoke:
Function: aws:getAvailabilityZones
fn::invoke:
function: aws:getAvailabilityZones
# Dynamically query for the Amazon Linux 2 AMI in this region.
awsLinuxAmi:
Fn::Invoke:
Function: aws:ec2:getAmi
Arguments:
fn::invoke:
function: aws:ec2:getAmi
arguments:
owners: ["amazon"]
filters:
- name: name
Expand Down
12 changes: 6 additions & 6 deletions aws-yaml-eks/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ runtime: yaml
description: An EKS cluster
variables:
vpcId:
Fn::Invoke:
Function: aws:ec2:getVpc
Arguments:
fn::invoke:
function: aws:ec2:getVpc
arguments:
default: true
Return: id
subnetIds:
Fn::Invoke:
Function: aws:ec2:getSubnetIds
Arguments:
fn::invoke:
function: aws:ec2:getSubnetIds
arguments:
vpcId: ${vpcId}
Return: ids
resources:
Expand Down
6 changes: 3 additions & 3 deletions azure-yaml-app-service/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ config:
default: pulumi
variables:
blobAccessToken:
Fn::Invoke:
Function: azure-native:storage:listStorageAccountServiceSAS
Arguments:
fn::invoke:
function: azure-native:storage:listStorageAccountServiceSAS
arguments:
accountName: ${sa.name}
protocols: https
sharedAccessStartTime: '2022-01-01'
Expand Down
18 changes: 9 additions & 9 deletions azure-yaml-container-apps/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ config:
default: pulumi
variables:
sharedKey:
Fn::Invoke:
Function: azure-native:operationalinsights:getSharedKeys
Arguments:
fn::invoke:
function: azure-native:operationalinsights:getSharedKeys
arguments:
resourceGroupName: ${resourceGroup.name}
workspaceName: ${workspace.name}
Return: primarySharedKey
adminUsername:
Fn::Invoke:
Function: azure-native:containerregistry:listRegistryCredentials
Arguments:
fn::invoke:
function: azure-native:containerregistry:listRegistryCredentials
arguments:
resourceGroupName: ${resourceGroup.name}
registryName: ${registry.name}
Return: username
adminPasswords:
Fn::Invoke:
Function: azure-native:containerregistry:listRegistryCredentials
Arguments:
fn::invoke:
function: azure-native:containerregistry:listRegistryCredentials
arguments:
resourceGroupName: ${resourceGroup.name}
registryName: ${registry.name}
Return: passwords
Expand Down
2 changes: 1 addition & 1 deletion webserver-yaml-json/Main.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"Properties": {
"instanceType": "${InstanceType}",
"ami": {
"Fn::Invoke": {
"fn::invoke": {
"Function": "aws:getAmi",
"Arguments": {
"filters": [
Expand Down
6 changes: 3 additions & 3 deletions webserver-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ config:
default: t3.micro
variables:
ec2ami:
Fn::Invoke:
Function: aws:getAmi
Arguments:
fn::invoke:
function: aws:getAmi
arguments:
filters:
- name: name
values: ["amzn-ami-hvm-*-x86_64-ebs"]
Expand Down

0 comments on commit 576e3bc

Please sign in to comment.