pulumi_command 1.2.1+1 copy "pulumi_command: ^1.2.1+1" to clipboard
pulumi_command: ^1.2.1+1 copied to clipboard

The Pulumi Command Provider enables you to execute commands and scripts either locally or remotely as part of the Pulumi resource model.

example/main.dart

import 'package:pulumi/pulumi.dart' as pulumi;

import 'package:pulumi_command/local.dart' as pulumi_command_local;

class CommandStack extends pulumi.Stack {
  late final List<pulumi.OutputProperty> _outputProperties;

  CommandStack() {
    final greeting = pulumi_command_local.Command(
      'greeting',
      args: pulumi_command_local.CommandArgs(
        create: pulumi.Input.asInput('echo \'hello from Pulumi Dart\''),
      ),
    );

    _outputProperties = [
      pulumi.OutputProperty(
        'message',
        pulumi.output(greeting.stdout).apply<Object?>((value) => value),
      ),
    ];
  }

  @override
  List<pulumi.OutputProperty> getOutputProperties() => _outputProperties;
}

Future<void> main() async {
  await pulumi.Deployment.runOrThrow(() => CommandStack());
}
0
likes
150
points
51
downloads

Documentation

API reference

Publisher

verified publisherglenfordwilliams.com

Weekly Downloads

The Pulumi Command Provider enables you to execute commands and scripts either locally or remotely as part of the Pulumi resource model.

Topics

#pulumi #command #category-utility #kind-native

License

Apache-2.0 (license)

Dependencies

pulumi

More

Packages that depend on pulumi_command