ModularPipelines icon indicating copy to clipboard operation
ModularPipelines copied to clipboard

AwsCli is not accessible

Open bszymik opened this issue 1 year ago • 1 comments

In below code, there is AwsCli but it is missing in IAmazon

using ModularPipelines.AmazonWebServices.Services;

namespace ModularPipelines.AmazonWebServices;

internal class Amazon : IAmazon
{
    public Amazon(IAmazonProvisioner provisioner, Aws awsCli)
    {
        Provisioner = provisioner;
        AwsCli = awsCli;
    }

    public IAmazonProvisioner Provisioner { get; }

    public Aws AwsCli { get; }
}

therefore it is not possible to use AwsCli e.g. in such way: context.Amazon().AwsCli.S3api. ... or there is some other way that I missed?

bszymik avatar Aug 28 '24 11:08 bszymik

In below code, there is AwsCli but it is missing in IAmazon

using ModularPipelines.AmazonWebServices.Services;

namespace ModularPipelines.AmazonWebServices;

internal class Amazon : IAmazon
{
    public Amazon(IAmazonProvisioner provisioner, Aws awsCli)
    {
        Provisioner = provisioner;
        AwsCli = awsCli;
    }

    public IAmazonProvisioner Provisioner { get; }

    public Aws AwsCli { get; }
}

therefore it is not possible to use AwsCli e.g. in such way: context.Amazon().AwsCli.S3api. ... or there is some other way that I missed?

Yeah that's an oversight on my part. The Amazon library doesn't really do much at the moment. If you've experience with it, feel free to help expand it 😃

thomhurst avatar Aug 28 '24 12:08 thomhurst