Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/directoryservice #88

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

tomvachon
Copy link
Contributor

Delete Directory Service Directories

@svenwltr
Copy link
Member

svenwltr commented Mar 6, 2018

This one doesn't work for me. It looks like it somehow ignores the region (see hostnames in debug output).

$ aws clouddirectory list-directories
{
    "Directories": [
        {
            "State": "ENABLED", 
            "CreationDateTime": 1520325250.996, 
            "Name": "foobar", 
            "DirectoryArn": "arn:aws:clouddirectory:eu-west-1:999999999999:directory/AbUJBm-9zE9FqabcdePeIx8"
        }
    ]
}

Debug output:

DEBU[0003] sending AWS request:
    > POST / HTTP/1.1
    > Host: ds.eu-west-1.amazonaws.com
    > Authorization: <hidden>
    > Content-Length: 13
    > Content-Type: application/x-amz-json-1.1
    > User-Agent: aws-sdk-go/1.13.8 (go1.9.2; linux; amd64)
    > X-Amz-Date: 20180306T083555Z
    > X-Amz-Target: DirectoryService_20150416.DescribeDirectories
    > 
    > {"Limit":100} 
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Content-Length: 28
    < Content-Type: application/x-amz-json-1.1
    < Date: Tue, 06 Mar 2018 08:35:55 GMT
    < X-Amzn-Requestid: 62fa2653-2119-11e8-9864-97f51312f012
    < 
    < {"DirectoryDescriptions":[]} 
DEBU[0003] sending AWS request:
    > POST / HTTP/1.1
    > Host: ds.us-east-1.amazonaws.com
    > Authorization: <hidden>
    > Content-Length: 13
    > Content-Type: application/x-amz-json-1.1
    > User-Agent: aws-sdk-go/1.13.8 (go1.9.2; linux; amd64)
    > X-Amz-Date: 20180306T083555Z
    > X-Amz-Target: DirectoryService_20150416.DescribeDirectories
    > 
    > {"Limit":100} 
DEBU[0004] received AWS response:
    < HTTP/1.1 200 OK
    < Content-Length: 28
    < Content-Type: application/x-amz-json-1.1
    < Date: Tue, 06 Mar 2018 08:35:55 GMT
    < X-Amzn-Requestid: 63386792-2119-11e8-afa7-1b8ba2367686
    < 
    < {"DirectoryDescriptions":[]} 
Scan complete: 0 total, 0 nukeable, 0 filtered.

No resource to delete.

@tomvachon
Copy link
Contributor Author

tomvachon commented Mar 6, 2018 via email

@tomvachon
Copy link
Contributor Author

@svenwltr You were testing CloudDirectory which isnt the same thing as DirectoryService (even though they are in the same console pane).

DirectoryService is Managed MS AD or SimpleAD (Samba4). CloudDirectory is what you are looking for. That PR was just filed. To test this you want to use: https://console.aws.amazon.com/directoryservice/home?region=us-east-1#CreateDomainWizardPlace:Simple%20AD

@svenwltr
Copy link
Member

svenwltr commented Mar 6, 2018

Ah I see. It looks like I just got too used to the inconsistent naming on AWS.

@svenwltr svenwltr merged commit 0b8e1b3 into rebuy-de:master Mar 6, 2018
@tomvachon tomvachon deleted the feature/directoryservice branch March 16, 2018 17:04
@svenwltr svenwltr added the kind/resource Adding or changing AWS resources. label Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/resource Adding or changing AWS resources.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants