Beispiel #1
0
 public MyStack()
 {
     var alternate = new Aws.Provider("alternate", new Aws.ProviderArgs
     {
         Profile = "profile1",
     });
     var senderShare = new Aws.Ram.ResourceShare("senderShare", new Aws.Ram.ResourceShareArgs
     {
         AllowExternalPrincipals = true,
         Tags =
         {
             { "Name", "tf-test-resource-share" },
         },
     }, new CustomResourceOptions
     {
         Provider = "aws.alternate",
     });
     var receiver     = Output.Create(Aws.GetCallerIdentity.InvokeAsync());
     var senderInvite = new Aws.Ram.PrincipalAssociation("senderInvite", new Aws.Ram.PrincipalAssociationArgs
     {
         Principal        = receiver.Apply(receiver => receiver.AccountId),
         ResourceShareArn = senderShare.Arn,
     }, new CustomResourceOptions
     {
         Provider = "aws.alternate",
     });
     var receiverAccept = new Aws.Ram.ResourceShareAccepter("receiverAccept", new Aws.Ram.ResourceShareAccepterArgs
     {
         ShareArn = senderInvite.ResourceShareArn,
     });
 }
Beispiel #2
0
 public MyStack()
 {
     var example = new Aws.Ram.PrincipalAssociation("example", new Aws.Ram.PrincipalAssociationArgs
     {
         Principal        = aws_organizations_organization.Example.Arn,
         ResourceShareArn = aws_ram_resource_share.Example.Arn,
     });
 }
Beispiel #3
0
 public MyStack()
 {
     var exampleResourceShare = new Aws.Ram.ResourceShare("exampleResourceShare", new Aws.Ram.ResourceShareArgs
     {
         AllowExternalPrincipals = true,
     });
     var examplePrincipalAssociation = new Aws.Ram.PrincipalAssociation("examplePrincipalAssociation", new Aws.Ram.PrincipalAssociationArgs
     {
         Principal        = "111111111111",
         ResourceShareArn = exampleResourceShare.Arn,
     });
 }