Skip to content

Commit

Permalink
shorten meta_desc, linting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas11 committed Jun 26, 2024
1 parent acaf1e8 commit 2dde5a7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions content/blog/command-provider-ga/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ date: 2024-06-20T11:02:20+02:00
draft: false

meta_desc: >-
The 1.0 release of the Pulumi Command provider marks the provider’s general availability (GA).
The release expands support for copying assets between local and remote hosts.
The 1.0 release of the Pulumi Command provider marks its general availability (GA) and expands support for copying assets to remote hosts.
meta_image: meta.png

Expand Down Expand Up @@ -210,7 +209,7 @@ using Pulumi;
using Aws = Pulumi.Aws;
using Command = Pulumi.Command;

return await Deployment.RunAsync(() =>
return await Deployment.RunAsync(() =>
{
var awsConfig = new Config("aws");

Expand Down Expand Up @@ -247,7 +246,7 @@ return await Deployment.RunAsync(() =>
var invokeCommand = new Command.Local.Command("invokeCommand", new()
{
Create = $"aws lambda invoke --function-name \"$FN\" --payload '{{\"stackName\": \"{Deployment.Instance.StackName}\"}}' --cli-binary-format raw-in-base64-out out.txt >/dev/null && cat out.txt | tr -d '\"' && rm out.txt",
Environment =
Environment =
{
{ "FN", lambdaFunction.Arn },
{ "AWS_REGION", awsConfig.Require("region") },
Expand Down Expand Up @@ -594,15 +593,15 @@ using System.Collections.Generic;
using Pulumi;
using Command = Pulumi.Command;

return await Deployment.RunAsync(() =>
return await Deployment.RunAsync(() =>
{
var config = new Config();
var serverPublicIp = config.Require("serverPublicIp");
var userName = config.Require("userName");
var privateKey = config.Require("privateKey");
var payload = config.Require("payload");
var destDir = config.Require("destDir");

var archive = new FileArchive(payload);

var conn = new Command.Remote.Inputs.ConnectionArgs
Expand Down Expand Up @@ -791,7 +790,6 @@ outputs:
{{% /choosable %}}
## Migration
If you're currently using one of the v0 pre-release versions of the Command provider, you don't need to make any changes to your existing code. The new features are additive and backward-compatible.
Expand Down

0 comments on commit 2dde5a7

Please sign in to comment.